[Mesa-dev] [PATCH 1/3] glsl/linker: Use correct array length when linking inter-stage uniforms and varyings.
Fabian Bieler
fabianbieler at fastmail.fm
Fri Jun 14 04:37:07 PDT 2013
Signed-off-by: Fabian Bieler <fabianbieler at fastmail.fm>
---
src/glsl/linker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index cd8d680..e3a8ccd 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -1147,7 +1147,7 @@ update_array_sizes(struct gl_shader_program *prog)
}
}
- if (size + 1 != var->type->fields.array->length) {
+ if (size + 1 != var->type->length) {
/* If this is a built-in uniform (i.e., it's backed by some
* fixed-function state), adjust the number of state slots to
* match the new array size. The number of slots per array entry
--
1.8.1.2
More information about the mesa-dev
mailing list