summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-06 13:31:37 -0600
committerBrian Paul <[email protected]>2010-05-06 14:26:58 -0600
commit9adebe172df9fbf9ba359d949e64ce07bbef77b7 (patch)
treed38fdcb53b00576adfe5206e37f06eaa5c3d966e /src/mesa
parent095a6531a2e2720a1488cdd4135b23c20fa7049b (diff)
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.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c2
1 files changed, 1 insertions, 1 deletions
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]);