forked from MoonsideGames/Refresh
few more mutex fixes
parent
62d962cf23
commit
3066fce16b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue