Files
vectorcraft/crates
dotCooCoo 0b3cf56b81 Graphics: closing the window after a lost device no longer panics
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
2026-11-30 06:59:34 -08:00
..
2026-11-30 13:39:42 +01:00
2026-11-27 19:12:32 -08:00