X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Ftexturing.cpp;h=be24d5d72b3a6e4fe2075e30af6f5772113b23a3;hb=571e96b202fc22220a0af2d6e10beecc36e97abd;hp=ab5d39b4c42e2b38d51c9ba1dfea5258e851a23a;hpb=fb1e7ede05b07625232c2092d99e9d6b2d54a153;p=libs%2Fgl.git diff --git a/source/render/texturing.cpp b/source/render/texturing.cpp index ab5d39b4..be24d5d7 100644 --- a/source/render/texturing.cpp +++ b/source/render/texturing.cpp @@ -136,7 +136,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()