From 3066fce16b5c1d0a5fc9038af8c1b191c8dd7489 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 3 Jan 2021 13:32:21 -0800 Subject: [PATCH] few more mutex fixes --- src/Refresh_Driver_Vulkan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 8973d82..89b8f5d 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -6033,6 +6033,7 @@ static void VULKAN_SetTextureData2D( { REFRESH_LogError("Failed to map buffer memory!"); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); + SDL_UnlockMutex(renderer->stagingLock); return; } @@ -6145,6 +6146,7 @@ static void VULKAN_SetTextureData3D( { REFRESH_LogError("Failed to map buffer memory!"); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); + SDL_UnlockMutex(renderer->stagingLock); return; } @@ -6256,6 +6258,7 @@ static void VULKAN_SetTextureDataCube( { REFRESH_LogError("Failed to map buffer memory!"); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); + SDL_UnlockMutex(renderer->stagingLock); return; } @@ -6385,6 +6388,7 @@ static void VULKAN_SetTextureDataYUV( { REFRESH_LogError("Failed to map buffer memory!"); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); + SDL_UnlockMutex(renderer->stagingLock); return; }