From: Brian Paul Date: Fri, 3 Apr 2009 19:48:43 +0000 (-0600) Subject: mesa: replace >= with > when testing if we've exceeded max local params X-Git-Tag: 062012170305~16521^2~883 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4173956ebcc224b5a0d76bace07b87bdf8bed03;p=profile%2Fivi%2Fmesa.git mesa: replace >= with > when testing if we've exceeded max local params Now a program that uses 256 locals works as it should. --- diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index a4d0fc3..6ef09fd 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;