gpu: Vulkan on private platforms cannot make use of oldSwapchain, destroy the full swapchain on resize

This commit is contained in:
Ethan Lee
2025-10-16 15:18:07 -04:00
parent 7a26bee6ee
commit 2135ecdfcc

View File

@@ -9915,7 +9915,12 @@ static Uint32 VULKAN_INTERNAL_RecreateSwapchain(
}
}
#ifdef SDL_VIDEO_DRIVER_PRIVATE
// Private platforms also invalidate the window, so don't try to preserve the surface/swapchain
VULKAN_INTERNAL_DestroySwapchain(renderer, windowData);
#else
VULKAN_INTERNAL_DestroySwapchainImage(renderer, windowData);
#endif
return VULKAN_INTERNAL_CreateSwapchain(renderer, windowData);
}