gallium: fix bug in PIPE_BLENDFACTOR_INV_DST_ALPHA case
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Apr 2008 20:17:48 +0000 (14:17 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Apr 2008 20:20:43 +0000 (14:20 -0600)
src/gallium/drivers/softpipe/sp_quad_blend.c

index 8be8025f40cbc58234351fb9aa2c0b88540dfad9..802472df45f1c39b827a6887ff11c21684d875a0 100644 (file)
@@ -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 */