projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127308b
)
glsl2: Don't bounds check unsize array redeclarations
author
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 1 Jul 2010 21:10:19 +0000
(14:10 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 1 Jul 2010 21:10:19 +0000
(14:10 -0700)
This along with several previous commits fix test CorrectUnsizedArray.frag.
src/glsl/ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ast_to_hir.cpp
b/src/glsl/ast_to_hir.cpp
index fc5a652f25da31782844b24108a2d9765fbb74db..3a7fcf16c52539e5d8913159909d9c090e5e1cfc 100644
(file)
--- a/
src/glsl/ast_to_hir.cpp
+++ b/
src/glsl/ast_to_hir.cpp
@@
-1826,7
+1826,7
@@
ast_declarator_list::hir(exec_list *instructions,
_mesa_glsl_error(& loc, state, "`gl_TexCoord' array size cannot "
"be larger than gl_MaxTextureCoords (%u)\n",
state->Const.MaxTextureCoords);
- } else if (
size <= earlier->max_array_access
) {
+ } else if (
(size > 0) && (size <= earlier->max_array_access)
) {
YYLTYPE loc = this->get_location();
_mesa_glsl_error(& loc, state, "array size must be > %u due to "