st/nine: Fix crash NineDevice9_CreateAdditionalSwapChain
authorAxel Davy <axel.davy@ens.fr>
Wed, 11 Nov 2015 09:13:58 +0000 (10:13 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commitcbbd3c65cc6f9a9850b945bc3d56c1860836e26c
tree8460c1fdae0e172174cb34e0f57b5f3cf7af846e
parent996f76bd8a6444970e57d646ad5af94f200bec00
st/nine: Fix crash NineDevice9_CreateAdditionalSwapChain

When no window is specified, we should revert to the focus window.

This deserves more tests however (what if the device swapchain is
already using the focus window ?)

Fixes crash for FFXIV

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