Fix a leak of the resource EGL context on Android (flutter/engine#26789)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user