[GPU] Fix crash in nvidia user-mode win32 driver when game window is minimized during swapchain resize (#11848)
This commit is contained in:
parent
0a5d2f3da2
commit
a58bc3eaf4
1 changed files with 7 additions and 0 deletions
|
@ -4463,6 +4463,7 @@ static Uint32 VULKAN_INTERNAL_CreateSwapchain(
|
||||||
&windowData->surface)) {
|
&windowData->surface)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
SDL_assert(windowData->surface);
|
||||||
|
|
||||||
if (!VULKAN_INTERNAL_QuerySwapchainSupport(
|
if (!VULKAN_INTERNAL_QuerySwapchainSupport(
|
||||||
renderer,
|
renderer,
|
||||||
|
@ -9471,6 +9472,9 @@ static bool VULKAN_SupportsSwapchainComposition(
|
||||||
}
|
}
|
||||||
|
|
||||||
surface = windowData->surface;
|
surface = windowData->surface;
|
||||||
|
if (!surface) {
|
||||||
|
SET_STRING_ERROR_AND_RETURN("Window has no Vulkan surface", false);
|
||||||
|
}
|
||||||
|
|
||||||
if (VULKAN_INTERNAL_QuerySwapchainSupport(
|
if (VULKAN_INTERNAL_QuerySwapchainSupport(
|
||||||
renderer,
|
renderer,
|
||||||
|
@ -9516,6 +9520,9 @@ static bool VULKAN_SupportsPresentMode(
|
||||||
}
|
}
|
||||||
|
|
||||||
surface = windowData->surface;
|
surface = windowData->surface;
|
||||||
|
if (!surface) {
|
||||||
|
SET_STRING_ERROR_AND_RETURN("Window has no Vulkan surface", false);
|
||||||
|
}
|
||||||
|
|
||||||
if (VULKAN_INTERNAL_QuerySwapchainSupport(
|
if (VULKAN_INTERNAL_QuerySwapchainSupport(
|
||||||
renderer,
|
renderer,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue