summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-03 17:00:22 -0700
committerBrian Paul <[email protected]>2009-12-03 17:00:22 -0700
commit4e058f6c4803be5d9d676338d6aee2775b88b87c (patch)
tree02e30734462e23cf43593235b194266aef6274fd /src/gallium/drivers/llvmpipe
parenta9be9cd8be0fac4be5d65430749666d2204b79a4 (diff)
llvmpipe: fix incorrect array indexing when saving blend color
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c2
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;