summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-03 13:48:43 -0600
committerBrian Paul <brianp@vmware.com>2009-04-03 13:48:43 -0600
commita4173956ebcc224b5a0d76bace07b87bdf8bed03 (patch)
tree9c0efcb5927daa4ccf867ab61130905f3e82e107 /src/mesa
parentce461ffc5aa2ea6941d6722e8ed473cda8c17833 (diff)
mesa: replace >= with > when testing if we've exceeded max local params
Now a program that uses 256 locals works as it should.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/arbprogparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index a4d0fc3efc..6ef09fd91b 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -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;