diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-06-13 14:04:14 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-06-18 13:53:14 +0000 |
commit | 7dfe6472cfc7d61bbd1dc42790c9f0eaad4ba1fc (patch) | |
tree | d033dd9bd8eebe0e87a3d417d2a631530eb03281 /src/core/web_engine_context.cpp | |
parent | 13215272d29fcd99d79b590cb03bb0e0487f5838 (diff) |
Fix bogus check for GL_ARB_ES2_compatibility
We check for GL_ARB_ES2_compatibility on wayland when
shared context is created for opengl and we want
to check if es2 compatibility is possible.
However check should be done on OpenGL renderableType
surface and not the other way around. This was
currently working due to bug in qtwayland, which
returned here OpenGL context instead of requested OpenGLES.
Change-Id: I47ab02cb9128670bfb02096d5911c4dcd24284d2
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 3e3a99f7a..473fd18e8 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -467,7 +467,7 @@ WebEngineContext::WebEngineContext() QOpenGLContext context; QSurfaceFormat format; - format.setRenderableType(QSurfaceFormat::OpenGLES); + format.setRenderableType(QSurfaceFormat::OpenGL); format.setVersion(2, 0); context.setFormat(format); |