st/wgl: fix issue with SwapBuffers of minimized windows
authorBrian Paul <brianp@vmware.com>
Wed, 17 Apr 2013 22:16:24 +0000 (16:16 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Apr 2013 22:23:19 +0000 (16:23 -0600)
commit02039066a8bd4e9cdce7f7d4c90606b54018d74e
tree3f8ae3122c642f27b069c72279892a546485b0b2
parent505ac6ddc6f83ee17655d54cf46ed71ead9e578c
st/wgl: fix issue with SwapBuffers of minimized windows

If a window's minimized we get a zero-size window.  Skip the SwapBuffers
in that case to avoid some warning messages with the VMware svga driver.
Internal bug #996695

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/wgl/stw_framebuffer.c
src/gallium/state_trackers/wgl/stw_framebuffer.h