Use correct enums for program output variables. Fixes

fp/tri-depthwrite.
This commit is contained in:
Keith Whitwell
2005-11-22 12:20:03 +00:00
parent ec1ffd9f25
commit e6e1c3fc11

View 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: