summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-03-05 18:08:50 -0700
committerBrian Paul <[email protected]>2013-03-06 10:34:09 -0700
commitb21f8e364b997c31ad0b3f97b18c7d87a35642eb (patch)
treec1972e7fb5291f0eca2759124c65a13504054aa0 /src/gallium
parent975d31f60de4f1b84cf5b0710314fef114ae2132 (diff)
llvmpipe: fix incorrect 'j' array index in dummy texture code
Use 0 instead. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 4529775f907..299fd65ff06 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -720,9 +720,9 @@ lp_setup_set_fragment_sampler_views(struct lp_setup_context *setup,
jit_tex->depth = 1;
jit_tex->first_level = 0;
jit_tex->last_level = 0;
- jit_tex->mip_offsets[j] = 0;
- jit_tex->row_stride[j] = 0;
- jit_tex->img_stride[j] = 0;
+ jit_tex->mip_offsets[0] = 0;
+ jit_tex->row_stride[0] = 0;
+ jit_tex->img_stride[0] = 0;
}
else {
jit_tex->width = res->width0;