We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d580d7 commit c5edf4bCopy full SHA for c5edf4b
src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -9934,6 +9934,11 @@ static bool VULKAN_INTERNAL_AcquireSwapchainTexture(
9934
SET_STRING_ERROR_AND_RETURN("Cannot acquire a swapchain texture from an unclaimed window!", false);
9935
}
9936
9937
+ if (window->flags & SDL_WINDOW_HIDDEN) {
9938
+ // Edge case, texture is filled in with NULL but not an error
9939
+ return true;
9940
+ }
9941
+
9942
// If window data marked as needing swapchain recreate, try to recreate
9943
if (windowData->needsSwapchainRecreate) {
9944
Uint32 recreateSwapchainResult = VULKAN_INTERNAL_RecreateSwapchain(renderer, windowData);
0 commit comments