You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit destroy_surfaces() consistently on all platforms
Surface creation and destruction events exist "specifically" for Android
which has diverging lifetimes for its `Surface` structure compared to
other platforms; specifically Vulkan `VkSurfaceKHR` or `EGLSurface`
objects need to be destroyed and recreated.
Commit 6cdb317 ("Consistently deliver a Resumed event on all
platforms") made sure to consistently call `can_create_surfaces()`
(`Event::Resumed` back then) on all platforms directly after
startup so that users don't have to have platform-specific surface
creation behaviour in two disjoint places, but we forgot about
`destroy_surfaces()` (back then `Event::Suspended`) leading to
applications still having to handle this destruction in two different
places.
Solve that by calling the callback on all those platforms, directly
before returning `PumpStatus::Exit` from `fn single_iteration()`.
0 commit comments