Module: Mesa
Branch: master
Commit: eef5a0b3a3e03abd1c69649763efc79575df650f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=eef5a0b3a3e03abd1c69649763efc79575df650f

Author: José Fonseca <jfons...@vmware.com>
Date:   Tue Nov 10 05:22:15 2009 -0800

llvmpipe: Fix derived blend color state.

---

 src/gallium/drivers/llvmpipe/lp_state_blend.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_blend.c 
b/src/gallium/drivers/llvmpipe/lp_state_blend.c
index 3f03bd0..b2e75d3 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_blend.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_blend.c
@@ -76,7 +76,7 @@ void llvmpipe_set_blend_color( struct pipe_context *pipe,
    for (i = 0; i < 4; ++i) {
       uint8_t c = float_to_ubyte(blend_color->color[i]);
       for (j = 0; j < 16; ++j)
-         llvmpipe->jit_context.blend_color[i*4 + j] = c;
+         llvmpipe->jit_context.blend_color[i*16 + j] = c;
    }
 }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to