From: Brian Paul Date: Wed, 9 Apr 2008 20:17:48 +0000 (-0600) Subject: gallium: fix bug in PIPE_BLENDFACTOR_INV_DST_ALPHA case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7e475280a0b98484a8c1a98f18b2733532486b4;p=mesa.git gallium: fix bug in PIPE_BLENDFACTOR_INV_DST_ALPHA case --- diff --git a/src/gallium/drivers/softpipe/sp_quad_blend.c b/src/gallium/drivers/softpipe/sp_quad_blend.c index 8be8025f40c..802472df45f 100644 --- a/src/gallium/drivers/softpipe/sp_quad_blend.c +++ b/src/gallium/drivers/softpipe/sp_quad_blend.c @@ -561,7 +561,7 @@ blend_quad(struct quad_stage *qs, struct quad_header *quad) case PIPE_BLENDFACTOR_INV_DST_ALPHA: { float inv_comp[4]; - VEC4_SUB(inv_comp, one, quadColor[3]); /* A */ + VEC4_SUB(inv_comp, one, dest[3]); /* A */ VEC4_MUL(dest[0], inv_comp, dest[0]); /* R */ VEC4_MUL(dest[1], inv_comp, dest[1]); /* G */ VEC4_MUL(dest[2], inv_comp, dest[2]); /* B */