st/mesa: fix incorrect glCopyPixels between window/FBO
authorBrian Paul <brianp@vmware.com>
Wed, 10 Mar 2010 17:42:22 +0000 (10:42 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 10 Mar 2010 17:42:22 +0000 (10:42 -0700)
commitb60aa251e4fb4dd32db3fe167e078bf0092cb726
tree6db1b26719faa909af5082419ab21e89885e2fda
parentc78ac7fcfa37a78b835fc596441a9fbe1e679e4a
st/mesa: fix incorrect glCopyPixels between window/FBO

There was a DrawBuffer/ReadBuffer typo and we were neglecting to invert
the texture coords when copying from a window to an FBO.

Plus, add some surface dump/debug code (disabled).

(cherry picked from commit 34f02071618624263eba839b5aeb930d0e794078)
src/mesa/state_tracker/st_cb_drawpixels.c