Index: ui/gl/gl_context_wgl.cc |
diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc |
index 916e49df5fcdcf9d1d66275686775d4135e6cc03..dba107bedc58439d4bfd622a548bf79e45e613a1 100644 |
--- a/ui/gl/gl_context_wgl.cc |
+++ b/ui/gl/gl_context_wgl.cc |
@@ -15,7 +15,7 @@ |
namespace gfx { |
GLContextWGL::GLContextWGL(GLShareGroup* share_group) |
- : GLContext(share_group), |
+ : GLContextReal(share_group), |
context_(NULL) { |
} |
@@ -81,7 +81,7 @@ bool GLContextWGL::MakeCurrent(GLSurface* surface) { |
return false; |
} |
- SetCurrent(this, surface); |
+ SetCurrent(surface); |
if (!InitializeExtensionBindings()) { |
ReleaseCurrent(surface); |
return false; |
@@ -100,7 +100,7 @@ void GLContextWGL::ReleaseCurrent(GLSurface* surface) { |
if (!IsCurrent(surface)) |
return; |
- SetCurrent(NULL, NULL); |
+ SetCurrent(NULL); |
wglMakeCurrent(NULL, NULL); |
} |
@@ -111,7 +111,7 @@ bool GLContextWGL::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; |