]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/pipelinestate.cpp
Use a scratch binding to modify textures and buffers
[libs/gl.git] / source / core / pipelinestate.cpp
index 21cb64f9f51bb88c5f7ccd02b4a5f65fb4006daf..318522d6563b547eebcf6b823ed3e5ddbb9c0305 100644 (file)
@@ -162,6 +162,9 @@ void PipelineState::set_blend(const Blend *b)
 
 void PipelineState::apply() const
 {
+       if(!last_applied)
+               Texture::unbind_scratch();
+
        apply(this==last_applied ? changes : ~0U);
 }