diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/link_uniform_blocks.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_uniform_blocks.cpp b/src/compiler/glsl/link_uniform_blocks.cpp index 839fd07fa4b..249a767636c 100644 --- a/src/compiler/glsl/link_uniform_blocks.cpp +++ b/src/compiler/glsl/link_uniform_blocks.cpp @@ -504,6 +504,9 @@ link_uniform_blocks_are_compatible(const gl_uniform_block *a, if (a->_RowMajor != b->_RowMajor) return false; + if (a->Binding != b->Binding) + return false; + for (unsigned i = 0; i < a->NumUniforms; i++) { if (strcmp(a->Uniforms[i].Name, b->Uniforms[i].Name) != 0) return false; |