Use correct enums for program output variables. Fixes
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 22 Nov 2005 12:20:03 +0000 (12:20 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 22 Nov 2005 12:20:03 +0000 (12:20 +0000)
fp/tri-depthwrite.

src/mesa/drivers/dri/i915/i915_fragprog.c

index db74f4d2a1b81ac3252d7c20e3b46f89f17bfc6e..5cd6ea4de5190e1a213760f06f87e125d87f665e 100644 (file)
@@ -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: