[GPU] Fix crash in nvidia user-mode win32 driver when game window is minimized during swapchain resize (#11848)

This commit is contained in:
Katelyn Gadd 2025-01-04 10:25:08 -08:00 committed by GitHub
parent 0a5d2f3da2
commit a58bc3eaf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4463,6 +4463,7 @@ static Uint32 VULKAN_INTERNAL_CreateSwapchain(
&windowData->surface)) {
return false;
}
SDL_assert(windowData->surface);
if (!VULKAN_INTERNAL_QuerySwapchainSupport(
renderer,
@ -9471,6 +9472,9 @@ static bool VULKAN_SupportsSwapchainComposition(
}
surface = windowData->surface;
if (!surface) {
SET_STRING_ERROR_AND_RETURN("Window has no Vulkan surface", false);
}
if (VULKAN_INTERNAL_QuerySwapchainSupport(
renderer,
@ -9516,6 +9520,9 @@ static bool VULKAN_SupportsPresentMode(
}
surface = windowData->surface;
if (!surface) {
SET_STRING_ERROR_AND_RETURN("Window has no Vulkan surface", false);
}
if (VULKAN_INTERNAL_QuerySwapchainSupport(
renderer,