summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-25 10:57:33 +0200
committerMichal Krol <michal@vmware.com>2009-09-25 18:52:13 +0200
commit69c7fc128c59bf72df461dbd583bf9794d9ed34d (patch)
treef3220e1422b7bad9ade75bd38018d6f50a3cda00 /src/gallium
parenta0fbc01ceaef08b33f97936d8840a6f48ec1654d (diff)
softpipe: Grab fs output z from the correct file.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/softpipe/sp_fs_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c
index c469ac63407..4076114d392 100644
--- a/src/gallium/drivers/softpipe/sp_fs_exec.c
+++ b/src/gallium/drivers/softpipe/sp_fs_exec.c
@@ -151,7 +151,7 @@ exec_run( const struct sp_fragment_shader *base,
{
uint j;
for (j = 0; j < 4; j++) {
- quad->output.depth[j] = machine->Outputs[0].xyzw[2].f[j];
+ quad->output.depth[j] = machine->Outputs[i].xyzw[2].f[j];
}
}
break;