summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/tdfx
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2005-01-06 07:35:46 +0000
committerDaniel Borca <[email protected]>2005-01-06 07:35:46 +0000
commit50122c9d2de568f7b8f37bd63ea252898008010b (patch)
tree63264395073d37b47cf6fdeb32b3e21e29f14598 /src/mesa/drivers/dri/tdfx
parente09c843c137d91a20e5c705c6c4b8a75579d8232 (diff)
fix dstRGB factor
Diffstat (limited to 'src/mesa/drivers/dri/tdfx')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_state.c6
1 files 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: