summaryrefslogtreecommitdiffstats
path: root/src/core/ozone/gl_surface_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-11-01 16:26:27 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-11-01 16:26:27 +0100
commit06a04f4acbde2f6ae966c450014102120b887d6a (patch)
treefade383f40bdfef720b6a7c38dc36e3533f4cdcb /src/core/ozone/gl_surface_qt.cpp
parent6c736295cf1ead52f7f4ca99138d678573dab03c (diff)
parent4cf520d67f0619330bbf53a743818924d476d95f (diff)
Merge remote-tracking branch 'origin/5.14' into 5.15
Diffstat (limited to 'src/core/ozone/gl_surface_qt.cpp')
-rw-r--r--src/core/ozone/gl_surface_qt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ozone/gl_surface_qt.cpp b/src/core/ozone/gl_surface_qt.cpp
index 58a225b4e..e9da5e6a5 100644
--- a/src/core/ozone/gl_surface_qt.cpp
+++ b/src/core/ozone/gl_surface_qt.cpp
@@ -140,7 +140,7 @@ bool InitializeGLOneOffPlatform()
{
VSyncProviderWin::InitializeOneOff();
- if (GetGLImplementation() == kGLImplementationEGLGLES2)
+ if (GetGLImplementation() == kGLImplementationEGLGLES2 || GetGLImplementation() == kGLImplementationEGLANGLE)
return GLSurfaceEGLQt::InitializeOneOff();
if (GetGLImplementation() == kGLImplementationDesktopGL) {
@@ -173,6 +173,7 @@ CreateOffscreenGLSurfaceWithFormat(const gfx::Size& size, GLSurfaceFormat format
return surface;
break;
}
+ case kGLImplementationEGLANGLE:
case kGLImplementationEGLGLES2: {
surface = new GLSurfaceEGLQt(size);
if (surface->Initialize(format))