st/mesa: fix incorrect glCopyPixels position on fallback path
authorBrian Paul <brianp@vmware.com>
Thu, 17 Feb 2011 17:09:37 +0000 (10:09 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 17 Feb 2011 17:13:33 +0000 (10:13 -0700)
commitd1becefb057ce89eeb93e130cb0d0c63de4be3d8
tree1534a430e99a0343b436ca8ada0871146829753b
parent1fa97ddb25c008c9edd0a137198eb89c3650d6fa
st/mesa: fix incorrect glCopyPixels position on fallback path

If we hit the pipe_get/put_tile() path for setting up the glCopyPixels
texture we were passing the wrong x/y position to pipe_get_tile().
The x/y position was already accounted for in the pipe_get_transfer()
call so we were effectively reading from 2*readX, 2*readY.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/state_tracker/st_cb_drawpixels.c