st/mesa: fix incorrect texture level/face/slice accesses
authorBrian Paul <brianp@vmware.com>
Thu, 26 May 2011 00:07:33 +0000 (18:07 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 26 May 2011 00:07:35 +0000 (18:07 -0600)
commitbf14ab417c6638afd19206e11ee69bdb9fb93d9e
tree3175d8342252bfa63e1684f133d5198c3f0a3ab9
parent1697dac64294aab73052541dab6763d660d088dc
st/mesa: fix incorrect texture level/face/slice accesses

If we use FBOs to access mipmap levels with glRead/Draw/CopyPixels()
we need to be sure to access the correct mipmap level/face/slice.
Before, we were just passing zero in quite a few places.

This fixes the new piglit fbo-mipmap-copypix test.

NOTE: This is a candidate for the 7.10 branch.
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_readpixels.c