xmesa: pass pixmap to clip_for_xgetimage()
authorBrian Paul <brianp@vmware.com>
Thu, 5 Nov 2009 23:48:50 +0000 (16:48 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Nov 2009 23:48:52 +0000 (16:48 -0700)
commit63191bd244f18fd78bebb9586d2b85ab9d5b38e2
treee7e7c3f44cd4d2d6391e349b3da8c95f9b763dc0
parent7c623905bc032480a0765093825f3bd105345121
xmesa: pass pixmap to clip_for_xgetimage()

The code was assuming ctx->DrawBuffer == ctx->ReadBuffer.
Passing the pixmap is simpler and better.
Fixes a potential segfault.
src/mesa/drivers/x11/xm_span.c