summaryrefslogtreecommitdiffstats
path: root/chromium/ui/gl/gl_context_egl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/gl/gl_context_egl.cc')
-rw-r--r--chromium/ui/gl/gl_context_egl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/ui/gl/gl_context_egl.cc b/chromium/ui/gl/gl_context_egl.cc
index cd6b534d403..1793d045bd8 100644
--- a/chromium/ui/gl/gl_context_egl.cc
+++ b/chromium/ui/gl/gl_context_egl.cc
@@ -52,7 +52,8 @@ bool GLContextEGL::Initialize(
config_ = compatible_surface->GetConfig();
const EGLint* context_attributes = NULL;
- if (GLSurfaceEGL::IsCreateContextRobustnessSupported()) {
+ if (GLSurfaceEGL::IsCreateContextRobustnessSupported()
+ && (!share_group()->GetContext() || share_group()->GetContext()->WasAllocatedUsingRobustnessExtension())) {
DVLOG(1) << "EGL_EXT_create_context_robustness supported.";
context_attributes = kContextRobustnessAttributes;
} else {