Index: ui/gl/gl_context_egl.cc |
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc |
index 77206a771cedb9dbad0676fec0e8656d8a9c0ceb..fad588bbfe3b1330afba0d0a278b1deebca6668f 100644 |
--- a/ui/gl/gl_context_egl.cc |
+++ b/ui/gl/gl_context_egl.cc |
@@ -114,8 +114,7 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) { |
"context", context_, |
"surface", surface); |
- if (unbind_fbo_on_makecurrent_ && |
- eglGetCurrentContext() != EGL_NO_CONTEXT) { |
+ if (unbind_fbo_on_makecurrent_ && GetCurrent()) { |
glBindFramebufferEXT(GL_FRAMEBUFFER, 0); |
} |