gallium: change calculate_first_last_level() to match gallium-tex-surfaces branch
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 6 May 2008 14:40:41 +0000 (08:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 6 May 2008 14:40:41 +0000 (08:40 -0600)
src/mesa/state_tracker/st_cb_texture.c

index 02ef961e4d3bbe345e6e3492754de49608d60ec4..866683c23e99a0cec7a524c419408c2b539efed7 100644 (file)
@@ -1366,7 +1366,7 @@ calculate_first_last_level(struct st_texture_object *stObj)
       }
       else {
          firstLevel = 0;
-         lastLevel = MIN2(tObj->MaxLevel, tObj->Image[0][0]->WidthLog2);
+         lastLevel = MIN2(tObj->MaxLevel, tObj->Image[0][tObj->BaseLevel]->WidthLog2);
       }
       break;
    case GL_TEXTURE_RECTANGLE_NV: