summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-06 08:40:41 -0600
committerBrian Paul <[email protected]>2008-05-06 08:40:41 -0600
commit66f703dca938f7749edc717fd8f690aba2d6e936 (patch)
tree971af2fd971eb2bb6f765a5fbfeaa2283708e6f0 /src
parentf77442fbd3b539aa3da927630c12c3a1a377f6da (diff)
gallium: change calculate_first_last_level() to match gallium-tex-surfaces branch
Diffstat (limited to 'src')
-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 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: