fix maxInst argument
authorBrian <brian@yutani.localnet.net>
Fri, 2 Feb 2007 18:37:58 +0000 (11:37 -0700)
committerBrian <brian@yutani.localnet.net>
Fri, 2 Feb 2007 18:37:58 +0000 (11:37 -0700)
src/mesa/swrast/s_fragprog.c

index 343cdf5bc53c651af60738d8889693f07ebb2408..740360d4603219cf4a4ed6a4212e755bc0af5e87 100644 (file)
@@ -1683,7 +1683,8 @@ run_program(GLcontext *ctx, SWspan *span, GLuint start, GLuint end)
       if (span->array->mask[i]) {
          init_machine(ctx, &machine, program, span, i);
 
-         if (execute_program(ctx, program, ~0, &machine, span, i)) {
+         if (execute_program(ctx, program, program->Base.NumInstructions,
+                             &machine, span, i)) {
             /* Store result color */
             COPY_4V(span->array->attribs[FRAG_ATTRIB_COL0][i],
                     machine.Outputs[FRAG_RESULT_COLR]);