Perform pending destroys before unlocking the submit mutex (#28)
continuous-integration/drone/push Build is passing Details

This makes the order of VULKAN_Submit consistent with VULKAN_Wait.

Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
Reviewed-on: #28
Co-authored-by: TheSpydog <thespydog@noreply.example.org>
Co-committed-by: TheSpydog <thespydog@noreply.example.org>
remotes/1727724532633433860/docs-and-cleanup
TheSpydog 2022-12-29 03:03:35 +00:00 committed by cosmonaut
parent 124f202d2c
commit ade74d73fe
1 changed files with 2 additions and 2 deletions

View File

@ -10038,11 +10038,11 @@ static void VULKAN_Submit(
} }
} }
SDL_UnlockMutex(renderer->submitLock);
/* Check pending destroys */ /* Check pending destroys */
VULKAN_INTERNAL_PerformPendingDestroys(renderer); VULKAN_INTERNAL_PerformPendingDestroys(renderer);
SDL_UnlockMutex(renderer->submitLock);
} }
/* Device instantiation */ /* Device instantiation */