02981d6bcf
* claim: #7148 * Lost GPU: a dropped frame no longer crashes the window's close (#7148) On a lost device wgpu's present and discard return early and leave the acquired frame's image in the surface, holding a swapchain acquire semaphore. Dropping the surface later (the window closing for the restart after the loss) then panicked in wgpu-hal. The painter now holds the frame as AcquiredFrame, which destroys a second handle to the frame's texture after the frame is presented or dropped; wgpu-core's destroy of a surface texture takes the image back without checking the device, and does nothing once a present or discard took it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>