summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx
diff options
context:
space:
mode:
authorJames McDonnell <jmcdonnell@blackberry.com>2019-12-09 17:30:29 -0500
committerJames McDonnell <jmcdonnell@blackberry.com>2020-01-31 18:31:01 -0500
commitaec3c6a9cb1286d391f0ba9d7b8d1499a7003580 (patch)
tree55b557ab52a08cec57ec20eaf236d10c6d5a4996 /src/plugins/platforms/qnx
parentb90eaa3bb516f00feaa5ee2bf4f0dd6fe4ec0d9a (diff)
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>
Diffstat (limited to 'src/plugins/platforms/qnx')
-rw-r--r--src/plugins/platforms/qnx/qqnxnativeinterface.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxnativeinterface.cpp b/src/plugins/platforms/qnx/qqnxnativeinterface.cpp
index 3bd6a86b59..25f7b09a60 100644
--- a/src/plugins/platforms/qnx/qqnxnativeinterface.cpp
+++ b/src/plugins/platforms/qnx/qqnxnativeinterface.cpp
@@ -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;
}