From d2ececacf42c33f944526b1273f836b214326781 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sun, 1 Feb 2015 19:23:05 +0100 Subject: [PATCH] Delay sync --- lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp b/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp index c22d81a0e..202029e7a 100644 --- a/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp +++ b/lib/irrlicht/source/Irrlicht/cirrdevicewayland.cpp @@ -493,7 +493,6 @@ CIrrDeviceWayland::CIrrDeviceWayland(const SIrrlichtCreationParameters& param) wl_seat_add_listener(seat, &WaylandCallbacks::seat_listener, this); wl_output_add_listener(output, &WaylandCallbacks::output_listener, this); - wl_display_dispatch(display); // create keymap createKeyMap(); @@ -512,10 +511,11 @@ CIrrDeviceWayland::CIrrDeviceWayland(const SIrrlichtCreationParameters& param) // create driver createDriver(); - if (!VideoDriver) - return; + if (VideoDriver) + createGUIAndScene(); - createGUIAndScene(); + // Sync everything wayland before leaving + wl_display_dispatch(display); }