mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
gpu: Vulkan on private platforms cannot make use of oldSwapchain, destroy the full swapchain on resize
This commit is contained in:
parent
7a26bee6ee
commit
2135ecdfcc
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue