diff options
author | Brian Paul <[email protected]> | 2010-03-10 15:11:49 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-03-10 18:09:49 -0700 |
commit | 19371fb60da8ec27a6024d0bf38b82cf3ca787e4 (patch) | |
tree | f01d0932d8e13741d4739b3cbaf59c91a16f45f5 | |
parent | 878eef8c40046f77cf1527fef06f1ea95bd1629a (diff) |
llvmpipe: fix loop over mipmap levels
-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 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]; } |