Set fp->Opcode for OP_TEX_KILL case, fix from Ben Skeggs.
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 1 Jul 2005 17:12:29 +0000 (17:12 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 1 Jul 2005 17:12:29 +0000 (17:12 +0000)
src/mesa/shader/arbprogparse.c

index b9bd1b0cee25028b771826e377282550dff2d5aa..e33b79ee4c64c7aa2fa0f8bff0582a5fc383b22b 100644 (file)
@@ -3115,6 +3115,7 @@ parse_fp_instruction (GLcontext * ctx, GLubyte ** inst,
       case OP_TEX_KIL:
         if (parse_fp_vector_src_reg(ctx, inst, vc_head, Program, &fp->SrcReg[0]))
             return 1;
+         fp->Opcode = FP_OPCODE_KIL;
          break;
    }