diff --git a/engine/src/flutter/shell/platform/android/android_surface_gl.cc b/engine/src/flutter/shell/platform/android/android_surface_gl.cc index 1178434514..f8a933dede 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_gl.cc +++ b/engine/src/flutter/shell/platform/android/android_surface_gl.cc @@ -92,7 +92,9 @@ bool AndroidSurfaceGL::ResourceContextMakeCurrent() { bool AndroidSurfaceGL::ResourceContextClearCurrent() { FML_DCHECK(IsValid()); - return GLContextPtr()->ClearCurrent(); + EGLBoolean result = eglMakeCurrent(eglGetCurrentDisplay(), EGL_NO_SURFACE, + EGL_NO_SURFACE, EGL_NO_CONTEXT); + return result == EGL_TRUE; } bool AndroidSurfaceGL::SetNativeWindow(