st/mesa: substitute argument to guess_base_level_size() call
authorBrian Paul <brianp@vmware.com>
Wed, 28 Sep 2011 16:37:22 +0000 (10:37 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Sep 2011 16:39:10 +0000 (10:39 -0600)
stObj->base.BaseLevel and firstImage->base.Level have the same value
but the later looks more consistent in the function call.

src/mesa/state_tracker/st_cb_texture.c

index 354e58de91dbf358fc8b4998e10ea7e77693e519..8df753f7c16e393642a8f990105053fd58db559d 100644 (file)
@@ -1707,7 +1707,7 @@ st_finalize_texture(struct gl_context *ctx,
                                  firstImage->base.Width2,
                                  firstImage->base.Height2,
                                  firstImage->base.Depth2,
-                                 stObj->base.BaseLevel,
+                                 firstImage->base.Level,
                                  &width, &height, &depth)) {
          width = stObj->width0;
          height = stObj->height0;