Bug 1365067 - rbab is requested on ANGLE but is not implemented - r=jgilbert
authorSamuel Vargas <svargas@mozilla.com>
Mon, 15 May 2017 15:01:57 -0700
changeset 360742 7476402eadc3
parent 360741 7c57d9481b54
child 360743 74b2d6cfaee3
push id31894
push userryanvm@gmail.com
push dateFri, 26 May 2017 01:31:24 +0000
treeherdermozilla-central@862e534ade6d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1365067
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1365067 - rbab is requested on ANGLE but is not implemented - r=jgilbert
gfx/gl/GLContextProviderEGL.cpp
--- a/gfx/gl/GLContextProviderEGL.cpp
+++ b/gfx/gl/GLContextProviderEGL.cpp
@@ -492,17 +492,19 @@ GLContextEGL::CreateGLContext(CreateCont
     if (flags & CreateContextFlags::PREFER_ROBUSTNESS) {
         if (sEGLLibrary.IsExtensionSupported(GLLibraryEGL::EXT_create_context_robustness)) {
             robustness_attribs = required_attribs;
             robustness_attribs.push_back(LOCAL_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT);
             robustness_attribs.push_back(LOCAL_EGL_LOSE_CONTEXT_ON_RESET_EXT);
             // Skip EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT, since it doesn't help us.
         }
 
-        if (sEGLLibrary.IsExtensionSupported(GLLibraryEGL::KHR_create_context)) {
+        if (sEGLLibrary.IsExtensionSupported(GLLibraryEGL::KHR_create_context) &&
+            !sEGLLibrary.IsANGLE())
+        {
             rbab_attribs = required_attribs;
             rbab_attribs.push_back(LOCAL_EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR);
             rbab_attribs.push_back(LOCAL_EGL_LOSE_CONTEXT_ON_RESET_KHR);
             rbab_attribs.push_back(LOCAL_EGL_CONTEXT_FLAGS_KHR);
             rbab_attribs.push_back(LOCAL_EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR);
         }
     }