projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf60c9
)
glsl: Increase size of array in_slang_lookup_constant from 4 to 16.
author
Vinson Lee
<vlee@vmware.com>
Fri, 11 Dec 2009 01:50:35 +0000
(17:50 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 11 Dec 2009 01:52:31 +0000
(17:52 -0800)
For some cases, _mesa_GetIntegerv reads up to params[15].
src/mesa/shader/slang/slang_simplify.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_simplify.c
b/src/mesa/shader/slang/slang_simplify.c
index 539c6ff0d148e55655817036aaa325e2a34bb7b7..13b9ca3c877c73860a24adf5fd7021e3f553b183 100644
(file)
--- a/
src/mesa/shader/slang/slang_simplify.c
+++ b/
src/mesa/shader/slang/slang_simplify.c
@@
-84,7
+84,7
@@
_slang_lookup_constant(const char *name)
for (i = 0; info[i].Name; i++) {
if (strcmp(info[i].Name, name) == 0) {
/* found */
- GLint values[
4
];
+ GLint values[
16
];
values[0] = -1;
_mesa_GetIntegerv(info[i].Token, values);
ASSERT(values[0] >= 0); /* sanity check that glGetFloatv worked */