mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-21 18:58:13 +00:00
[GPU] Fix crash in nvidia user-mode win32 driver when game window is minimized during swapchain resize (#11848)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user