Mesa (master): st/mesa: substitute argument to guess_base_level_size() call

Brian Paul brianp at kemper.freedesktop.org
Wed Sep 28 16:39:52 UTC 2011


Module: Mesa
Branch: master
Commit: 124fc96ddf2695b4eca1a9b373f33cb993de9f6a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=124fc96ddf2695b4eca1a9b373f33cb993de9f6a

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Sep 28 10:37:22 2011 -0600

st/mesa: substitute argument to guess_base_level_size() call

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 |    2 +-
 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 354e58d..8df753f 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -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;




More information about the mesa-commit mailing list