Files
SDL/src/gpu
Sascha Reuter 3939fb03bf GPU Vulkan: handle VK_ERROR_SURFACE_LOST_KHR in acquire path
On Android, backgrounding and foregrounding an app causes the Vulkan
surface to be destroyed. vkAcquireNextImageKHR returns
VK_ERROR_SURFACE_LOST_KHR, but the acquire while(true) loop only calls
RecreateSwapchain which doesn't recreate the surface, resulting in an
infinite retry loop and a black screen.

Handle VK_ERROR_SURFACE_LOST_KHR by setting both needsSurfaceRecreate
and needsSwapchainRecreate, then returning to let the existing
recreation path handle it on the next call.

Fixes #15322

(cherry picked from commit c98b36ff03)
2026-04-06 07:19:36 -07:00
..
2026-03-07 10:37:53 -05:00
2026-01-01 09:48:19 -08:00
2026-01-01 09:48:19 -08:00