]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/texturing.cpp
Rename Pipeline to Sequence
[libs/gl.git] / source / render / texturing.cpp
index ab5d39b4c42e2b38d51c9ba1dfea5258e851a23a..341cdb79712f6c739ffed027d4ac069f7e04b234 100644 (file)
@@ -5,6 +5,8 @@
 
 using namespace std;
 
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 namespace Msp {
 namespace GL {
 
@@ -136,7 +138,10 @@ void Texturing::bind_attachment(const Attachment &attch) const
                attch.sampler->bind_to(attch.unit);
        else
                Sampler::unbind_from(attch.unit);
-       attch.texture->bind_to(attch.unit);
+       if(attch.texture)
+               attch.texture->bind_to(attch.unit);
+       else
+               Texture::unbind_from(attch.unit);
 }
 
 void Texturing::unbind()