summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-03-10 15:11:49 -0700
committerBrian Paul <[email protected]>2010-03-10 18:09:49 -0700
commit19371fb60da8ec27a6024d0bf38b82cf3ca787e4 (patch)
treef01d0932d8e13741d4739b3cbaf59c91a16f45f5 /src/gallium/drivers/llvmpipe
parent878eef8c40046f77cf1527fef06f1ea95bd1629a (diff)
llvmpipe: fix loop over mipmap levels
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 fbe14924cb1..d6d37c48090 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -475,7 +475,7 @@ lp_setup_set_sampler_textures( struct setup_context *setup,
if (!lp_tex->dt) {
/* regular texture - setup array of mipmap level pointers */
int j;
- for (j = 0; j < LP_MAX_TEXTURE_2D_LEVELS; j++) {
+ for (j = 0; j <= tex->last_level; j++) {
jit_tex->data[j] =
(ubyte *) lp_tex->data + lp_tex->level_offset[j];
}