st/wgl: Prevent spurious framebuffer sizes when the window is minimized.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 7 Apr 2011 18:15:55 +0000 (19:15 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 12 Apr 2011 11:00:49 +0000 (12:00 +0100)
commit16d42af618aa6250bedc7e66e0e2c0b061cc6e99
treecb027800dd01f585b4c84d83d1d413bffd83b00a
parentb5829c0d6444a9eb25738c9b7f0bab8b667c8e0a
st/wgl: Prevent spurious framebuffer sizes when the window is minimized.

When the window is minimized GetClientRect will return zeros.

Instead of creating a 1x1 framebuffer, simply preserve the current window
size, until the window is restored or maximized again.
src/gallium/state_trackers/wgl/stw_framebuffer.c