Removed redundant check for VK_SUCCESS

Fixes https://github.com/libsdl-org/SDL/issues/15157
This commit is contained in:
Sam Lantinga
2026-06-23 08:59:16 -07:00
parent 284afc2c9a
commit 7be5990089

View File

@@ -10968,10 +10968,8 @@ static bool VULKAN_Submit(
presentData->windowData->needsSwapchainRecreate = true;
presentData->windowData->needsSurfaceRecreate = true;
} else {
if (presentResult != VK_SUCCESS) {
VULKAN_INTERNAL_ReleaseCommandBuffer(vulkanCommandBuffer);
SDL_UnlockMutex(renderer->submitLock);
}
VULKAN_INTERNAL_ReleaseCommandBuffer(vulkanCommandBuffer);
SDL_UnlockMutex(renderer->submitLock);
CHECK_VULKAN_ERROR_AND_RETURN(presentResult, vkQueuePresentKHR, false);
}