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; }