mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: replace >= with > when testing if we've exceeded max local params
Now a program that uses 256 locals works as it should.
This commit is contained in:
parent
ce461ffc5a
commit
a4173956eb
1 changed files with 2 additions and 2 deletions
|
|
@ -1929,10 +1929,10 @@ parse_param_elements (GLcontext * ctx, const GLubyte ** inst,
|
|||
|
||||
/* Make sure we haven't blown past our parameter limits */
|
||||
if (((Program->Base.Target == GL_VERTEX_PROGRAM_ARB) &&
|
||||
(Program->Base.NumParameters >=
|
||||
(Program->Base.NumParameters >
|
||||
ctx->Const.VertexProgram.MaxLocalParams))
|
||||
|| ((Program->Base.Target == GL_FRAGMENT_PROGRAM_ARB)
|
||||
&& (Program->Base.NumParameters >=
|
||||
&& (Program->Base.NumParameters >
|
||||
ctx->Const.FragmentProgram.MaxLocalParams))) {
|
||||
program_error(ctx, Program->Position, "Too many parameter variables");
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue