mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
glsl: fix inequality in set_program_uniform()
We were off by one when checking for too many uniform values.
This commit is contained in:
parent
897331ed15
commit
b9d8f717d2
1 changed files with 1 additions and 1 deletions
|
|
@ -1660,7 +1660,7 @@ set_program_uniform(GLcontext *ctx, struct gl_program *program,
|
|||
for (k = 0; k < count; k++) {
|
||||
GLfloat *uniformVal;
|
||||
|
||||
if (offset + k > slots) {
|
||||
if (offset + k >= slots) {
|
||||
/* Extra array data is ignored */
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue