diff options
author | Brian Paul <[email protected]> | 2009-12-03 17:00:22 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-03 17:00:22 -0700 |
commit | 4e058f6c4803be5d9d676338d6aee2775b88b87c (patch) | |
tree | 02e30734462e23cf43593235b194266aef6274fd | |
parent | a9be9cd8be0fac4be5d65430749666d2204b79a4 (diff) |
llvmpipe: fix incorrect array indexing when saving blend color
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 36bd0ad4ddc..8ef764eb80a 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -543,7 +543,7 @@ lp_setup_update_shader_state( struct setup_context *setup ) for (i = 0; i < 4; ++i) { uint8_t c = float_to_ubyte(setup->blend_color.current.color[i]); for (j = 0; j < 16; ++j) - stored[i*4 + j] = c; + stored[i*16 + j] = c; } setup->blend_color.stored = stored; |