st/nine: Ignore window size if error
authorAxel Davy <davyaxel0@gmail.com>
Wed, 2 Jan 2019 21:13:12 +0000 (22:13 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Mon, 4 Mar 2019 20:52:15 +0000 (21:52 +0100)
commit86666f051e0cae96f2596cac05e3c3f394744149
treec0a59f1ac97555fab8bd8e4c720fec8deae021ab
parentec0f465bc5f02c93aeb4193db8b5bd90a254b080
st/nine: Ignore window size if error

Check GetWindowInfo and ignore the computed sizes
if there is an error.

Fixes a regression caused by earlier commit when
using old wine gallium nine patches.

Should also address a crash at window destruction.

Related issues:
 https://github.com/iXit/Mesa-3D/issues/331
 https://github.com/iXit/Mesa-3D/issues/332

Cc: mesa-stable@lists.freedesktop.org
Fixes: 2318ca68bbe ("st/nine: Handle window resize when a presentation
buffer is used")

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/swapchain9.c