few more mutex fixes

submit_rewrite
cosmonaut 2021-01-03 13:32:21 -08:00 committed by thatcosmonaut
parent 62d962cf23
commit 3066fce16b
1 changed files with 4 additions and 0 deletions

View File

@ -6033,6 +6033,7 @@ static void VULKAN_SetTextureData2D(
{ {
REFRESH_LogError("Failed to map buffer memory!"); REFRESH_LogError("Failed to map buffer memory!");
SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock);
SDL_UnlockMutex(renderer->stagingLock);
return; return;
} }
@ -6145,6 +6146,7 @@ static void VULKAN_SetTextureData3D(
{ {
REFRESH_LogError("Failed to map buffer memory!"); REFRESH_LogError("Failed to map buffer memory!");
SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock);
SDL_UnlockMutex(renderer->stagingLock);
return; return;
} }
@ -6256,6 +6258,7 @@ static void VULKAN_SetTextureDataCube(
{ {
REFRESH_LogError("Failed to map buffer memory!"); REFRESH_LogError("Failed to map buffer memory!");
SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock);
SDL_UnlockMutex(renderer->stagingLock);
return; return;
} }
@ -6385,6 +6388,7 @@ static void VULKAN_SetTextureDataYUV(
{ {
REFRESH_LogError("Failed to map buffer memory!"); REFRESH_LogError("Failed to map buffer memory!");
SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock); SDL_UnlockMutex(renderer->textureStagingBuffer->subBuffers[0]->allocation->memoryLock);
SDL_UnlockMutex(renderer->stagingLock);
return; return;
} }