r600: user correct alpha blend factor
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 28 Sep 2009 07:42:35 +0000 (10:42 +0300)
committerDave Airlie <airlied@linux.ie>
Tue, 29 Sep 2009 09:24:34 +0000 (19:24 +1000)
Signed-off-by: Dave Airlie <airlied@linux.ie>
src/mesa/drivers/dri/r600/r700_state.c

index fbff109455dda17dd1f12e705c6586431bad4868..3ad6d74f536f54532776382d6d9770718d13d70a 100644 (file)
@@ -493,10 +493,10 @@ static void r700SetBlendState(GLcontext * ctx)
                 eqn, COLOR_COMB_FCN_shift, COLOR_COMB_FCN_mask);
 
        SETfield(blend_reg,
-                blend_factor(ctx->Color.BlendSrcRGB, GL_TRUE),
+                blend_factor(ctx->Color.BlendSrcA, GL_TRUE),
                 ALPHA_SRCBLEND_shift, ALPHA_SRCBLEND_mask);
        SETfield(blend_reg,
-                blend_factor(ctx->Color.BlendDstRGB, GL_FALSE),
+                blend_factor(ctx->Color.BlendDstA, GL_FALSE),
                 ALPHA_DESTBLEND_shift, ALPHA_DESTBLEND_mask);
 
        switch (ctx->Color.BlendEquationA) {