From a4c36a87dbfff4cf468b049549941af447c73c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 24 Oct 2016 15:28:08 +0200 Subject: [PATCH] demos: Flush XCB connection after creating window. This fixes the "BadDrawable (invalid Pixmap or Window parameter)" error thrown by vkGetPhysicalDeviceSurfaceCapabilitiesKHR() on Nvidia drivers. --- demos/demo_xcb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/demo_xcb.h b/demos/demo_xcb.h index 6da32b6b..e30bb642 100644 --- a/demos/demo_xcb.h +++ b/demos/demo_xcb.h @@ -164,6 +164,8 @@ static inline struct demo_window *demo_window_create(struct demo *demo, const ch xcb_map_window(demo->connection, window->window); + xcb_flush(demo->connection); + return window; }