From 6c1eee1342364741a57154683450a941c2f5983f Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Tue, 19 Nov 2013 13:25:54 +0100 Subject: Make sure platformNames for QtShareGLContext are compared lowercase. Change-Id: I070e5b5f135f0e74eaf47bd5975892fd288dafab Reviewed-by: Andras Becsi --- lib/content_browser_client_qt.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3