From 2aef80864a42e978cf44f15fdbbb26823f169a37 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Tue, 8 Oct 2019 06:41:00 +0200 Subject: [PATCH] IrrDeviceWayland: Don't try to use non-existent wl_pointer object --- lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp index 8c0ddf913..cbfa0e605 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp @@ -1253,6 +1253,9 @@ void CIrrDeviceWayland::createDriver() void CIrrDeviceWayland::updateCursor() { + if (!m_pointer) + return; + if (!getCursorControl()->isVisible() && CreationParams.Fullscreen) { wl_pointer_set_cursor(m_pointer, m_enter_serial, NULL, 0, 0);