perform pending destroys before unlocking the submit mutex

mutex-order
Caleb Cornett 2022-12-22 22:08:13 -05:00
parent 528abfad76
commit 9dcc3fff28
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 */