diff options
author | Brian Paul <[email protected]> | 2008-05-06 08:40:41 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-06 08:40:41 -0600 |
commit | 66f703dca938f7749edc717fd8f690aba2d6e936 (patch) | |
tree | 971af2fd971eb2bb6f765a5fbfeaa2283708e6f0 /src/mesa/state_tracker/st_cb_texture.c | |
parent | f77442fbd3b539aa3da927630c12c3a1a377f6da (diff) |
gallium: change calculate_first_last_level() to match gallium-tex-surfaces branch
Diffstat (limited to 'src/mesa/state_tracker/st_cb_texture.c')
-rw-r--r-- | 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 02ef961e4d3..866683c23e9 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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: |