Fix X11 Vulkan bug from Wayland driver.

This commit is contained in:
Brandon Wright 2018-03-17 19:45:01 -05:00
parent 8f0c94a322
commit e8de264b75

View File

@ -545,7 +545,7 @@ static void gfx_ctx_wl_destroy_resources(gfx_ctx_wayland_data_t *wl)
#ifdef HAVE_VULKAN
vulkan_context_destroy(&wl->vk, wl->surface);
if (wl->input.fd >= 0)
if (wl->input.dpy != NULL && wl->input.fd >= 0)
close(wl->input.fd);
#endif
break;