mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 08:18:41 +00:00
Removed redundant check for VK_SUCCESS
Fixes https://github.com/libsdl-org/SDL/issues/15157
This commit is contained in:
parent
284afc2c9a
commit
7be5990089
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue