summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-02 11:37:58 -0700
committerBrian <[email protected]>2007-02-02 11:37:58 -0700
commit2f5b3c9607fd48418a5b3d3dcd6035a3b976b166 (patch)
tree3e79a70a1b6d56461369da583053ce1e04876573 /src/mesa/swrast
parente53ec3a862692218437dcdb647e5b88ba68ee05e (diff)
fix maxInst argument
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_fragprog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c
index 343cdf5bc53..740360d4603 100644
--- a/src/mesa/swrast/s_fragprog.c
+++ b/src/mesa/swrast/s_fragprog.c
@@ -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]);