mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-12 13:28:44 +00:00
gpu: Vulkan on private platforms cannot make use of oldSwapchain, destroy the full swapchain on resize
This commit is contained in:
@@ -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);
|
VULKAN_INTERNAL_DestroySwapchainImage(renderer, windowData);
|
||||||
|
#endif
|
||||||
return VULKAN_INTERNAL_CreateSwapchain(renderer, windowData);
|
return VULKAN_INTERNAL_CreateSwapchain(renderer, windowData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user