From 90ebb581e60d29bd565ad4d8a49e642de7b0ce5d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 2 Nov 2005 18:06:12 +0000 Subject: Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program convention --- src/mesa/swrast/s_nvfragprog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/swrast') diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index 434f3f5c06..cae0e49cc3 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -1484,22 +1484,22 @@ _swrast_exec_fragment_program( GLcontext *ctx, struct sw_span *span ) /* Store output registers */ { const GLfloat *colOut - = ctx->FragmentProgram.Machine.Outputs[FRAG_OUTPUT_COLR]; + = ctx->FragmentProgram.Machine.Outputs[FRAG_RESULT_COLR]; UNCLAMPED_FLOAT_TO_CHAN(span->array->rgba[i][RCOMP], colOut[0]); UNCLAMPED_FLOAT_TO_CHAN(span->array->rgba[i][GCOMP], colOut[1]); UNCLAMPED_FLOAT_TO_CHAN(span->array->rgba[i][BCOMP], colOut[2]); UNCLAMPED_FLOAT_TO_CHAN(span->array->rgba[i][ACOMP], colOut[3]); } /* depth value */ - if (program->OutputsWritten & (1 << FRAG_OUTPUT_DEPR)) { + if (program->OutputsWritten & (1 << FRAG_RESULT_DEPR)) { const GLfloat depth - = ctx->FragmentProgram.Machine.Outputs[FRAG_OUTPUT_DEPR][2]; + = ctx->FragmentProgram.Machine.Outputs[FRAG_RESULT_DEPR][2]; span->array->z[i] = IROUND(depth * ctx->DrawBuffer->_DepthMaxF); } } } - if (program->OutputsWritten & (1 << FRAG_OUTPUT_DEPR)) { + if (program->OutputsWritten & (1 << FRAG_RESULT_DEPR)) { span->interpMask &= ~SPAN_Z; span->arrayMask |= SPAN_Z; } -- cgit v1.2.3