summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-11-19 13:25:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-19 14:12:41 +0100
commit6c1eee1342364741a57154683450a941c2f5983f (patch)
treeb6505f4944da326ee41a085147ef150b7cfb1398
parenta867d7673b9770fafa42907fffb5886d5f8d4c9c (diff)
Make sure platformNames for QtShareGLContext are compared lowercase.
Change-Id: I070e5b5f135f0e74eaf47bd5975892fd288dafab Reviewed-by: Andras Becsi <andras.becsi@digia.com>
-rw-r--r--lib/content_browser_client_qt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/content_browser_client_qt.cpp b/lib/content_browser_client_qt.cpp
index dbe5ca2f4..68f0523cd 100644
--- a/lib/content_browser_client_qt.cpp
+++ b/lib/content_browser_client_qt.cpp
@@ -213,14 +213,14 @@ public:
: gfx::GLContext(0)
, m_handle(0)
{
- QString platform = qApp->platformName();
+ QString platform = qApp->platformName().toLower();
QPlatformNativeInterface *pni = QGuiApplication::platformNativeInterface();
if (platform == QStringLiteral("xcb")) {
if (gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2)
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext);
else
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("glxcontext"), qtContext);
- } else if (platform == QStringLiteral("Cocoa"))
+ } else if (platform == QStringLiteral("cocoa"))
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("cglcontextobj"), qtContext);
else if (platform == QStringLiteral("qnx"))
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext);