mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 07:00:12 +01:00
glsl: Increase size of array in_slang_lookup_constant from 4 to 16.
For some cases, _mesa_GetIntegerv reads up to params[15].
This commit is contained in:
parent
1cf60c9810
commit
d38ffed523
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ _slang_lookup_constant(const char *name)
|
||||||
for (i = 0; info[i].Name; i++) {
|
for (i = 0; info[i].Name; i++) {
|
||||||
if (strcmp(info[i].Name, name) == 0) {
|
if (strcmp(info[i].Name, name) == 0) {
|
||||||
/* found */
|
/* found */
|
||||||
GLint values[4];
|
GLint values[16];
|
||||||
values[0] = -1;
|
values[0] = -1;
|
||||||
_mesa_GetIntegerv(info[i].Token, values);
|
_mesa_GetIntegerv(info[i].Token, values);
|
||||||
ASSERT(values[0] >= 0); /* sanity check that glGetFloatv worked */
|
ASSERT(values[0] >= 0); /* sanity check that glGetFloatv worked */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue