Merge pull request #6414 from bearoso/master

Fix X11 Vulkan bug from Wayland driver.
This commit is contained in:
Twinaphex 2018-03-18 04:41:32 +01:00 committed by GitHub
commit 3e3b24bbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;