| Index: ui/gl/gl_context_egl.cc
|
| diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
|
| index ee815bf4d6100140bd43017706651823adaee1c4..7354c7d82ec63a29fbda735ccca4430c0d68ff37 100644
|
| --- a/ui/gl/gl_context_egl.cc
|
| +++ b/ui/gl/gl_context_egl.cc
|
| @@ -25,7 +25,7 @@ using ui::GetLastEGLErrorString;
|
| namespace gfx {
|
|
|
| GLContextEGL::GLContextEGL(GLShareGroup* share_group)
|
| - : GLContext(share_group),
|
| + : GLContextReal(share_group),
|
| context_(NULL),
|
| display_(NULL),
|
| config_(NULL),
|
| @@ -112,7 +112,7 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| - SetCurrent(this, surface);
|
| + SetCurrent(surface);
|
| if (!InitializeExtensionBindings()) {
|
| ReleaseCurrent(surface);
|
| return false;
|
| @@ -138,7 +138,7 @@ void GLContextEGL::ReleaseCurrent(GLSurface* surface) {
|
| if (unbind_fbo_on_makecurrent_)
|
| glBindFramebufferEXT(GL_FRAMEBUFFER, 0);
|
|
|
| - SetCurrent(NULL, NULL);
|
| + SetCurrent(NULL);
|
| eglMakeCurrent(display_,
|
| EGL_NO_SURFACE,
|
| EGL_NO_SURFACE,
|
| @@ -153,7 +153,7 @@ bool GLContextEGL::IsCurrent(GLSurface* surface) {
|
| // If our context is current then our notion of which GLContext is
|
| // current must be correct. On the other hand, third-party code
|
| // using OpenGL might change the current context.
|
| - DCHECK(!native_context_is_current || (GetCurrent() == this));
|
| + DCHECK(!native_context_is_current || (GetRealCurrent() == this));
|
|
|
| if (!native_context_is_current)
|
| return false;
|
|
|