vulkan/wsi/x11: Better handle wsi_x11_connection_create failure
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Nov 2016 00:16:14 +0000 (17:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Nov 2016 16:25:57 +0000 (09:25 -0700)
commitfc0e9e3e40e4b044ce1b62c1b757941f4ed4c820
tree98b9e84ec4000472a272a6ce30c548833ba3af59
parente3e5b1a4884666ec806d4eb0188826578580d666
vulkan/wsi/x11: Better handle wsi_x11_connection_create failure

Without this fix, the function would still end up returning NULL but it
would put that NULL connection in the hash table which would be bad.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/vulkan/wsi/wsi_common_x11.c