xlib: add X error handler around XGetImage() call
authorBrian Paul <brianp@vmware.com>
Wed, 25 Jul 2012 22:23:42 +0000 (16:23 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 26 Jul 2012 19:59:44 +0000 (13:59 -0600)
commita73e9207da188a65af50da279f1436566c4a8418
treef8a7538f3f38094edb69d266bf46a3b60a9a692f
parent66adc807c496c0329bf298a59991565fa4bfb0e3
xlib: add X error handler around XGetImage() call

XGetImage() will generate a BadMatch error if the source window isn't
visible.  When that happens, create a new XImage.  Fixes piglit 'select'
test failures with swrast/xlib driver.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/x11/xm_buffer.c