mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-24 03:55:39 +00:00
Removed redundant check for VK_SUCCESS
Fixes https://github.com/libsdl-org/SDL/issues/15157
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user