summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-24 18:26:42 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-24 18:26:42 -0600
commit703140bbd58931046c00b43e52a7c4e9235875ca (patch)
treee5c3a02e0958c5b617ab8006aa85b5e9621d4133 /src/mesa/pipe/softpipe
parent29dc25bcfebfcb1764382bee960851ab051e6bbe (diff)
Fix fragment program color output mapping (0=depth, 1=color)
Diffstat (limited to 'src/mesa/pipe/softpipe')
-rwxr-xr-xsrc/mesa/pipe/softpipe/sp_quad_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c
index bfc31f94a6..cb0b6d8a77 100755
--- a/src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/src/mesa/pipe/softpipe/sp_quad_fs.c
@@ -136,10 +136,10 @@ shade_quad(
/* run shader */
tgsi_exec_machine_run( &machine );
- /* store result color */
+ /* store result color (always in output[1]) */
memcpy(
quad->outputs.color,
- &machine.Outputs[TGSI_ATTRIB_COLOR0].xyzw[0].f[0],
+ &machine.Outputs[1].xyzw[0].f[0],
sizeof( quad->outputs.color ) );
#if 0