st/mesa: fix/simplify st_texture_object::lastLevel calculation
authorBrian Paul <brianp@vmware.com>
Mon, 28 Sep 2009 15:28:50 +0000 (09:28 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 28 Sep 2009 15:35:08 +0000 (09:35 -0600)
commite3a6f57ad6c0e7bda5d45eb146194ed39f45abdd
treed5d94d330a6e45c0c0bb83e8e0045545eba2c00b
parent41d0606b7f4666c31db31bec3c54934ef6cd16e7
st/mesa: fix/simplify st_texture_object::lastLevel calculation

Don't compute the st_texture_object::lastLevel field based on the texture
filters.  Use the _MaxLevel value that core Mesa computes for us.
When called from the GenerateMipmap path, we'll use the lastLevel field
as-is.
src/mesa/state_tracker/st_cb_texture.c