Delay sync
This commit is contained in:
parent
da449e02d0
commit
d2ececacf4
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user