eglfs_kms: Fix build with -no-opengl

This patch amends 259adc5e77a40bc8f0b7e4c17f7a38bfc4ad511b

Change-Id: Ie8d8a8e0817cea455eb1fe14501e8429d29428b8
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Gatis Paeglis 2018-12-27 01:10:29 +01:00
parent f43f636f50
commit 30e665f747
2 changed files with 5 additions and 1 deletions

View File

@ -118,6 +118,8 @@ QPlatformCursor *QEglFSKmsGbmIntegration::createCursor(QPlatformScreen *screen)
qCDebug(qLcEglfsKmsDebug, "Using plain OpenGL mouse cursor");
return new QEglFSCursor(screen);
}
#else
Q_UNUSED(screen);
#endif
return nullptr;
}

View File

@ -289,7 +289,9 @@ QPlatformCursor *QEglFSKmsEglDeviceIntegration::createCursor(QPlatformScreen *sc
{
#if QT_CONFIG(opengl)
if (screenConfig()->separateScreens())
return new QEglFSCursor(screen);
return new QEglFSCursor(screen);
#else
Q_UNUSED(screen);
#endif
return nullptr;
}