demos: Flush XCB connection after creating window.

This fixes the "BadDrawable (invalid Pixmap or Window parameter)" error
thrown by vkGetPhysicalDeviceSurfaceCapabilitiesKHR() on Nvidia drivers.
This commit is contained in:
Józef Kucia 2016-10-24 15:28:08 +02:00
parent e42a9da943
commit a4c36a87db

View File

@ -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_map_window(demo->connection, window->window);
xcb_flush(demo->connection);
return window; return window;
} }