Add EglDisplay resource to the QNX platform plugin

QtWayland requires this resource.

Change-Id: I41f83d93582bfe7c471208e8ca844e24dc2c6da5
Reviewed-by: Dan Cape <dcape@qnx.com>
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
bb10
James McDonnell 2019-12-09 17:30:29 -05:00
parent b90eaa3bb5
commit aec3c6a9cb
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ void *QQnxNativeInterface::nativeResourceForIntegration(const QByteArray &resour
if (resource == "screenContext")
return m_integration->screenContext();
#if QT_CONFIG(opengl)
if (resource.toLower() == "egldisplay")
return m_integration->eglDisplay();
#endif
return 0;
}