Commit b6f04615 authored by penghu's avatar penghu Committed by Commit bot

Replace 'eglGetCurrentContext()' with 'GetCurrent()'.

An external eglcontext may be current on android webview. GetCurrent() is better than eglGetCurrentContext() here.

BUG=

Review-Url: https://codereview.chromium.org/2276873002
Cr-Commit-Position: refs/heads/master@{#414297}
parent 1b6b36c1
......@@ -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);
}
......
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