From 50122c9d2de568f7b8f37bd63ea252898008010b Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Thu, 6 Jan 2005 07:35:46 +0000 Subject: [PATCH] fix dstRGB factor --- src/mesa/drivers/dri/tdfx/tdfx_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/tdfx/tdfx_state.c b/src/mesa/drivers/dri/tdfx/tdfx_state.c index 7aa6098c721..cb3c1059bca 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_state.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_state.c @@ -71,7 +71,7 @@ static void tdfxUpdateAlphaMode( GLcontext *ctx ) { tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx); GrCmpFnc_t func; - GrAlphaBlendFnc_t srcRGB, dstRGB = GR_BLEND_ZERO, srcA, dstA; + GrAlphaBlendFnc_t srcRGB, dstRGB, srcA, dstA; GrAlphaBlendOp_t eqRGB, eqA; GrAlpha_t ref = (GLint) (ctx->Color.AlphaRef * 255.0); @@ -190,12 +190,12 @@ static void tdfxUpdateAlphaMode( GLcontext *ctx ) break; case GL_DST_COLOR: if (isNapalm) { - srcRGB = GR_BLEND_SAME_COLOR_EXT; + dstRGB = GR_BLEND_SAME_COLOR_EXT; break; } case GL_ONE_MINUS_DST_COLOR: if (isNapalm) { - srcRGB = GR_BLEND_ONE_MINUS_SAME_COLOR_EXT; + dstRGB = GR_BLEND_ONE_MINUS_SAME_COLOR_EXT; break; } default: -- 2.30.2