Delay sync

This commit is contained in:
Vincent Lejeune 2015-02-01 19:23:05 +01:00
parent da449e02d0
commit d2ececacf4

View File

@ -493,7 +493,6 @@ CIrrDeviceWayland::CIrrDeviceWayland(const SIrrlichtCreationParameters& param)
wl_seat_add_listener(seat, &WaylandCallbacks::seat_listener, this); wl_seat_add_listener(seat, &WaylandCallbacks::seat_listener, this);
wl_output_add_listener(output, &WaylandCallbacks::output_listener, this); wl_output_add_listener(output, &WaylandCallbacks::output_listener, this);
wl_display_dispatch(display);
// create keymap // create keymap
createKeyMap(); createKeyMap();
@ -512,10 +511,11 @@ CIrrDeviceWayland::CIrrDeviceWayland(const SIrrlichtCreationParameters& param)
// create driver // create driver
createDriver(); createDriver();
if (!VideoDriver) if (VideoDriver)
return; createGUIAndScene();
createGUIAndScene(); // Sync everything wayland before leaving
wl_display_dispatch(display);
} }