Perform pending destroys before unlocking the submit mutex (#28)

This makes the order of VULKAN_Submit consistent with VULKAN_Wait.

Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
Reviewed-on: MoonsideGames/Refresh#28
Co-authored-by: TheSpydog <thespydog@noreply.example.org>
Co-committed-by: TheSpydog <thespydog@noreply.example.org>
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 */
VULKAN_INTERNAL_PerformPendingDestroys(renderer);
SDL_UnlockMutex(renderer->submitLock);
}
/* Device instantiation */