From: Brian Paul Date: Thu, 6 May 2010 19:31:37 +0000 (-0600) Subject: st/mesa: when copying mipmap levels between textures, start at BaseLevel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9adebe172df9fbf9ba359d949e64ce07bbef77b7;p=mesa.git 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. --- 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]);