st/mesa: fill in stImage->level in st_generate_mipmap()
authorBrian Paul <brianp@vmware.com>
Wed, 28 Apr 2010 16:05:00 +0000 (10:05 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Apr 2010 16:05:06 +0000 (10:05 -0600)
commit56f99ee640772f71c1eac0388ba2d70935010e3e
tree0adfc8169bfba578ceba8a9acd66788b9c864f02
parentef9a8fcb1b651b95c570fd3a46cdea4751d2b725
st/mesa: fill in stImage->level in st_generate_mipmap()

Before, this field was always zero for all the new mipmap levels.
Fixes problems with glGetTexImage() from a generated mipmap.
src/mesa/state_tracker/st_gen_mipmap.c