llvmpipe: Fix derived blend color state.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 10 Nov 2009 13:22:15 +0000 (05:22 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 10 Nov 2009 13:22:15 +0000 (05:22 -0800)
src/gallium/drivers/llvmpipe/lp_state_blend.c

index 3f03bd00571637d69b39230d9b53165155924703..b2e75d3b14e30b1a4efa902b5e13ba47043a77d2 100644 (file)
@@ -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;
    }
 }