st/nine: Don't present if window is occluded
authorPatrick Rudolph <siro@das-labor.org>
Wed, 10 Feb 2016 18:41:12 +0000 (19:41 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 18 May 2016 21:37:14 +0000 (23:37 +0200)
commit72be473ad17893ecc4697644e88defa38b35f126
tree5f19c74f889851319232f8c8fc129bf7beee0bbd
parentc673c46ccf1ed78eaf68011f32bfb1696f765966
st/nine: Don't present if window is occluded

The problem is that if one d3d present call fails,
because of our occlusion check in present method,
the next presentation call will send the same pixmap to the Xserver again,
without waiting it is released, which is wrong.

Move the present call after occlusion check to return and prevent
Xpixmaps errors.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/swapchain9.c