projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glsl: give all unnamed structs the same name
[mesa.git]
/
src
/
compiler
/
glsl
/
link_uniform_blocks.cpp
diff --git
a/src/compiler/glsl/link_uniform_blocks.cpp
b/src/compiler/glsl/link_uniform_blocks.cpp
index 839fd07fa4b01815692084cc33a3cd07f7b42331..249a767636c27c8cf3f5a8235aac21d23d3e6875 100644
(file)
--- 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;