diff options
author | Keith Whitwell <[email protected]> | 2005-11-22 12:20:03 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-11-22 12:20:03 +0000 |
commit | e6e1c3fc11cb421ce3a703b81e8fe7057c5134a9 (patch) | |
tree | 0bac42820a7e981d319aceedb441c77b4e6f45c9 /src/mesa/drivers/dri/i915 | |
parent | ec1ffd9f2578ec2f289a9dbd8e08c8821bafb169 (diff) |
Use correct enums for program output variables. Fixes
fp/tri-depthwrite.
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_fragprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c index db74f4d2a1b..5cd6ea4de51 100644 --- a/src/mesa/drivers/dri/i915/i915_fragprog.c +++ b/src/mesa/drivers/dri/i915/i915_fragprog.c @@ -156,9 +156,9 @@ static GLuint get_result_vector( struct i915_fragment_program *p, switch (inst->DstReg.File) { case PROGRAM_OUTPUT: switch (inst->DstReg.Index) { - case 0: + case FRAG_RESULT_COLR: return UREG(REG_TYPE_OC, 0); - case 1: + case FRAG_RESULT_DEPR: p->depth_written = 1; return UREG(REG_TYPE_OD, 0); default: |