mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 21:58:36 +00:00
After the graphics device is lost, a frame the device could not present stays acquired by the window's surface. When the window closed, eframe released the surface, and wgpu's Vulkan backend panicked with "Trying to destroy a SwapchainAcquireSemaphore that is still in use by a SurfaceTexture" (gfx-rs/wgpu#9277), so the app stopped with an error. GraphicsLoss now remembers that a loss happened after the frame handled the report. When the window closes after a loss, the process ends in on_exit once the app has saved what it keeps on quitting, before the window's graphics are torn down, on every platform. This is the exit the macOS accessibility quit already takes (#661); a loss during start-up still goes to the adapter restart (#651). Fixes #6374