fix Vulkan fence leak on download

d3d11
cosmonaut 2024-03-05 20:58:02 -08:00
parent 838b5df27b
commit 65c30350a7
1 changed files with 2 additions and 0 deletions

View File

@ -10267,6 +10267,7 @@ static void VULKAN_DownloadFromTexture(
fence = VULKAN_SubmitAndAcquireFence(driverData, (Refresh_CommandBuffer*) vulkanCommandBuffer);
VULKAN_WaitForFences(driverData, 1, 1, &fence);
VULKAN_ReleaseFence(driverData, fence);
}
static void VULKAN_DownloadFromBuffer(
@ -10325,6 +10326,7 @@ static void VULKAN_DownloadFromBuffer(
fence = VULKAN_SubmitAndAcquireFence(driverData, (Refresh_CommandBuffer*) vulkanCommandBuffer);
VULKAN_WaitForFences(driverData, 1, 1, &fence);
VULKAN_ReleaseFence(driverData, fence);
}
/* Device instantiation */