IrrDeviceWayland: Don't try to use non-existent wl_pointer object

This commit is contained in:
Sebastian Krzyszkowiak 2019-10-08 06:41:00 +02:00
parent 9e0da6a283
commit 2aef80864a
No known key found for this signature in database
GPG Key ID: E8F235CF3BDBC3FF

View File

@ -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);