From 1f124e50cde3250e11efaec306f2a07ace3185de Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Fri, 16 May 2014 13:47:22 +0200 Subject: Windows: Use single process binary on Windows and fix GL context Change-Id: Iee7f3dc7fb9deba03e57a80ed48b74069490fe0d Reviewed-by: Andras Becsi --- src/core/content_browser_client_qt.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/content_browser_client_qt.cpp') diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index 200ebd35f..8a917c72f 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -222,7 +222,12 @@ public: m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext); else if (platform == QStringLiteral("eglfs")) m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext); - else { + else if (platform == QStringLiteral("windows")) { + if (gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2) + m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext); + else + qFatal("Only the EGLGLES2 implementation is supported on %s platform.", platform.toLatin1().constData()); + } else { qFatal("%s platform not yet supported", platform.toLatin1().constData()); // Add missing platforms once they work. Q_UNREACHABLE(); -- cgit v1.2.3