r600: user correct alpha blend factor
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 28 Sep 2009 07:42:35 +0000 (10:42 +0300)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 15 Oct 2009 15:16:53 +0000 (11:16 -0400)
Signed-off-by: Dave Airlie <airlied@linux.ie>
src/mesa/drivers/dri/r600/r700_state.c

index 98f116d0a6a1a48f58e3612443a1b44a7c38438c..0d1f906d84f8deaf83fd85ce978697653399efd6 100644 (file)
@@ -467,10 +467,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) {