We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5845af commit 1ddc6e1Copy full SHA for 1ddc6e1
1 file changed
shell/platform/android/android_surface_gl.cc
@@ -57,8 +57,11 @@ bool AndroidSurfaceGL::OnScreenSurfaceResize(const SkISize& size) {
57
58
android_context_->ClearCurrent();
59
60
+ // Ensure the destructor is called since it destroys the `EGLSurface` before
61
+ // creating a new onscreen surface.
62
+ onscreen_surface_ = nullptr;
63
onscreen_surface_ = android_context_->CreateOnscreenSurface(native_window_);
- if (onscreen_surface_->IsValid()) {
64
+ if (!onscreen_surface_->IsValid()) {
65
FML_LOG(ERROR) << "Unable to create EGL window surface on resize.";
66
return false;
67
}
0 commit comments