From 9adebe172df9fbf9ba359d949e64ce07bbef77b7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 May 2010 13:31:37 -0600 Subject: st/mesa: when copying mipmap levels between textures, start at BaseLevel Saves some work and avoids potential issue with inconsistant mipmap level sizes. As long as the mipmap levels from BaseLevel to MaxLevel are consistant, we don't care about the other levels. --- src/mesa/state_tracker/st_cb_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 11952a033a5..cd5bb58d82c 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1900,7 +1900,7 @@ st_finalize_texture(GLcontext *ctx, */ for (face = 0; face < nr_faces; face++) { GLuint level; - for (level = 0; level <= stObj->lastLevel; level++) { + for (level = stObj->base.BaseLevel; level <= stObj->lastLevel; level++) { struct st_texture_image *stImage = st_texture_image(stObj->base.Image[face][level]); -- cgit v1.2.3