projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01dd363
)
vulkan/wsi/x11: don't crash on null wsi x11 connection
author
Arda Coskunses
<acoskunses@gmail.com>
Thu, 22 Dec 2016 22:03:11 +0000
(15:03 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 22 Dec 2016 22:09:46 +0000
(14:09 -0800)
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
patch
|
blob
|
history
diff --git
a/src/vulkan/wsi/wsi_common_x11.c
b/src/vulkan/wsi/wsi_common_x11.c
index 037aa50ba2aa9c8cd674e08f4c67729e7d11db3a..7126838848489cc6b4381084bc8059c9d6e861fa 100644
(file)
--- a/
src/vulkan/wsi/wsi_common_x11.c
+++ b/
src/vulkan/wsi/wsi_common_x11.c
@@
-261,6
+261,9
@@
VkBool32 wsi_get_physical_device_xcb_presentation_support(
struct wsi_x11_connection *wsi_conn =
wsi_x11_get_connection(wsi_device, alloc, connection);
+ if (!wsi_conn)
+ return false;
+
if (!wsi_conn->has_dri3) {
fprintf(stderr, "vulkan: No DRI3 support\n");
return false;