vulkan/wsi/x11: don't crash on null wsi x11 connection
authorArda Coskunses <acoskunses@gmail.com>
Thu, 22 Dec 2016 22:03:11 +0000 (15:03 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Dec 2016 22:09:46 +0000 (14:09 -0800)
commit99de7b752546c3f87aa8a18f72fd46856270555f
treef9f2c7b4d29a21822bb9ae9df8eb57fd985e44d5
parent01dd363e671ac3a457bc3ff60b43b04e108c33fc
vulkan/wsi/x11: don't crash on null wsi x11 connection

Without this check driver crash when application window
closed unexpectedly.

Acked-by: Edward O'Callaghan <funfunctor@folklore194.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/vulkan/wsi/wsi_common_x11.c