mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix EGL_BAD_SURFACE when app is paused (flutter/engine#20735)
This commit is contained in:
parent
4dd556028f
commit
eb4c56aba4
@ -35,7 +35,11 @@ AndroidSurfaceGL::AndroidSurfaceGL(
|
||||
AndroidSurfaceGL::~AndroidSurfaceGL() = default;
|
||||
|
||||
void AndroidSurfaceGL::TeardownOnScreenContext() {
|
||||
// When the onscreen surface is destroyed, the context and the surface
|
||||
// instance should be deleted. Issue:
|
||||
// https://github.com/flutter/flutter/issues/64414
|
||||
android_context_->ClearCurrent();
|
||||
onscreen_surface_ = nullptr;
|
||||
}
|
||||
|
||||
bool AndroidSurfaceGL::IsValid() const {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user