From 733ca6f650e6122d5222f281036f02e3bc423f83 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 23 Feb 2024 10:42:52 -0800 Subject: [PATCH] fix double refcount on compute resources --- src/Refresh_Driver_Vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index b185aa2..e4efd04 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -3393,7 +3393,7 @@ static void VULKAN_INTERNAL_TrackComputeBuffer( VulkanCommandBuffer *commandBuffer, VulkanBuffer *computeBuffer ) { - TRACK_RESOURCE( + ADD_TO_ARRAY_UNIQUE( computeBuffer, VulkanBuffer*, boundComputeBuffers, @@ -3407,7 +3407,7 @@ static void VULKAN_INTERNAL_TrackComputeTexture( VulkanCommandBuffer *commandBuffer, VulkanTexture *computeTexture ) { - TRACK_RESOURCE( + ADD_TO_ARRAY_UNIQUE( computeTexture, VulkanTexture*, boundComputeTextures,