Index: ui/gl/gl_context_cgl.cc |
diff --git a/ui/gl/gl_context_cgl.cc b/ui/gl/gl_context_cgl.cc |
index 4ee17588d8e090d302ceeed69f5cb80c3382bb4a..d761473448e808cb5fa4c9466a1bb1fe1143440e 100644 |
--- a/ui/gl/gl_context_cgl.cc |
+++ b/ui/gl/gl_context_cgl.cc |
@@ -203,7 +203,7 @@ bool GLContextCGL::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; |