From: Mikko Rasa Date: Wed, 17 Nov 2021 14:56:50 +0000 (+0200) Subject: Don't try to apply push constants as uniforms in OpenGL X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=394b57279ff26781bfbba6d6f2b8ee1a25877e23;p=libs%2Fgl.git Don't try to apply push constants as uniforms in OpenGL They shouldn't exist anyway. --- diff --git a/source/backends/opengl/pipelinestate_backend.cpp b/source/backends/opengl/pipelinestate_backend.cpp index 7cd65400..19ee0f58 100644 --- a/source/backends/opengl/pipelinestate_backend.cpp +++ b/source/backends/opengl/pipelinestate_backend.cpp @@ -118,7 +118,7 @@ void OpenGLPipelineState::apply(unsigned mask) const glBindBufferRange(GL_UNIFORM_BUFFER, u.binding, u.block->get_buffer()->id, u.block->get_offset(), u.block->get_data_size()); bound_uniform_blocks[u.binding] = 1; } - else if(self.shprog) + else if(u.binding==ReflectData::DEFAULT_BLOCK && self.shprog) { const char *data = static_cast(u.block->get_data_pointer()); for(const Program::UniformCall &call: self.shprog->uniform_calls)