Index: ui/gl/gl_context_egl.cc |
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc |
index 9ab9695a25562c8ef2d836921ad5d2629ddaf08c..96ffd94f54044838995a97721b817eeacd0ebfc9 100644 |
--- a/ui/gl/gl_context_egl.cc |
+++ b/ui/gl/gl_context_egl.cc |
@@ -151,7 +151,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; |