st/mesa: no-op glCopyPixels if source region is out of bounds
authorBrian Paul <brianp@vmware.com>
Fri, 20 Apr 2012 22:45:12 +0000 (16:45 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 23 Apr 2012 19:27:07 +0000 (13:27 -0600)
commit99ed0b2f9b95a484aa78aeee0277bb669611be5b
treea88bdabbb5f73bb6304e79ac5b4fb0d015cda113
parentd7f9b6ce13dcfc4f1d7c84c121d66606f8d05f7b
st/mesa: no-op glCopyPixels if source region is out of bounds

If the source region for a glCopyPixels is completely outside the
source buffer bounds, no-op the copy.  Fixes a failed assertion.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_drawpixels.c