]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/pipelinestate_backend.cpp
Print warnings if a required resource is not bound in PipelineState
[libs/gl.git] / source / backends / opengl / pipelinestate_backend.cpp
index 204e8139f0fc70802aaf3592b68a60779a124bae..da5f495712408926bde3f9445349b383009c819c 100644 (file)
@@ -252,6 +252,11 @@ void OpenGLPipelineState::apply() const
                        glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE);
        }
 
+#ifdef DEBUG
+       if(changes&(PipelineState::SHPROG|PipelineState::RESOURCES))
+               self.check_bound_resources();
+#endif
+
        applied_to = &device;
        dev_state.last_pipeline = this;
        changes = 0;