diff options
| author | Rene Lindsay <rene@lunarg.com> | 2016-06-21 12:16:44 -0700 |
|---|---|---|
| committer | Rene Lindsay <rene@lunarg.com> | 2016-06-21 12:16:44 -0700 |
| commit | 5f67d65631e64c1dc22012fb72a42048e59bc69a (patch) | |
| tree | 8a1e6c4af955ddbc937145919feecbc74d41c4e3 | |
| parent | fbbf1db0e55410d80212c50abb8508c1dcd42365 (diff) | |
| download | usermoji-5f67d65631e64c1dc22012fb72a42048e59bc69a.tar.xz | |
demos: Fix intermittent crash on xlib
| -rw-r--r-- | demos/vulkaninfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c index 866756a0..7121163e 100644 --- a/demos/vulkaninfo.c +++ b/demos/vulkaninfo.c @@ -133,6 +133,7 @@ struct app_instance { #ifdef VK_USE_PLATFORM_XLIB_KHR Display *xlib_display; Window xlib_window; + Atom xlib_wm_delete_window; #endif #ifdef VK_USE_PLATFORM_ANDROID_KHR // TODO @@ -949,6 +950,7 @@ static void app_create_xlib_window(struct app_instance *inst) { visualInfo->visual, 0, NULL); XFlush(inst->xlib_display); + inst->xlib_wm_delete_window = XInternAtom(inst->xlib_display, "WM_DELETE_WINDOW", False); } static void app_create_xlib_surface(struct app_instance *inst, struct app_gpu *gpu) { |
