projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e53ec3a
)
fix maxInst argument
author
Brian
<brian@yutani.localnet.net>
Fri, 2 Feb 2007 18:37:58 +0000
(11:37 -0700)
committer
Brian
<brian@yutani.localnet.net>
Fri, 2 Feb 2007 18:37:58 +0000
(11:37 -0700)
src/mesa/swrast/s_fragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_fragprog.c
b/src/mesa/swrast/s_fragprog.c
index 343cdf5bc53c651af60738d8889693f07ebb2408..740360d4603219cf4a4ed6a4212e755bc0af5e87 100644
(file)
--- 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]);