summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.cpp
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2014-05-16 13:47:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-21 13:36:48 +0200
commit1f124e50cde3250e11efaec306f2a07ace3185de (patch)
tree37663dcdcc2c6875a2103fe8a137506816be5e1e /src/core/content_browser_client_qt.cpp
parent560f10aee4f3294b65f58a9579b0e76009c1de4a (diff)
Windows: Use single process binary on Windows and fix GL context
Change-Id: Iee7f3dc7fb9deba03e57a80ed48b74069490fe0d Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp7
1 files changed, 6 insertions, 1 deletions
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();