Commit 12445b71 authored by Geoff Lang's avatar Geoff Lang Committed by Commit Bot

Reorder GL implementations on Mac to not use EGL so early.

Since https://chromium-review.googlesource.com/c/chromium/src/+/1005017/ EGL is
enabled on Mac but not used by default.  The disable_es3_gl_context workaround
removes the kGLImplementationDesktopGLCoreProfile GL implementation from the
list of allowed implementations which now defaults to using EGL when the
intention is that it falls back to a non-core desktop GL profile. Reorder the
implementations so that the fallback happens as expected.

BUG=918365

Change-Id: Ibf9ae089897f32508dd83fed41cfdc8412e9c7bb
Reviewed-on: https://chromium-review.googlesource.com/c/1437060Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626096}
parent 8e470e32
......@@ -63,12 +63,12 @@ class NoOpGLSurface : public GLSurface {
std::vector<GLImplementation> GetAllowedGLImplementations() {
std::vector<GLImplementation> impls;
impls.push_back(kGLImplementationDesktopGLCoreProfile);
impls.push_back(kGLImplementationDesktopGL);
impls.push_back(kGLImplementationAppleGL);
#if BUILDFLAG(USE_EGL_ON_MAC)
impls.push_back(kGLImplementationEGLGLES2);
impls.push_back(kGLImplementationSwiftShaderGL);
#endif // BUILDFLAG(USE_EGL_ON_MAC)
impls.push_back(kGLImplementationDesktopGL);
impls.push_back(kGLImplementationAppleGL);
return impls;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment