mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
glsl: fix inequality in set_program_uniform()
We were off by one when checking for too many uniform values.
(cherry picked from master, commit b9d8f717d2)
This commit is contained in:
parent
a0a81204c2
commit
c983abbb9e
1 changed files with 1 additions and 1 deletions
|
|
@ -1624,7 +1624,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