Perform pending destroys before unlocking the submit mutex #28

Merged
cosmonaut merged 1 commits from TheSpydog/Refresh:mutex-order into main 2022-12-29 03:03:39 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -10048,11 +10048,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 */