From 20c369845fb30a78cee0868aabc7f549217012af Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 22 Feb 2024 10:35:27 -0800 Subject: [PATCH] rename DISCARD to SAFEDISCARD --- src/Refresh_Driver_Vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 7dea313..4e952e6 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -8485,7 +8485,7 @@ static void VULKAN_SetData( VulkanRenderer *renderer = (VulkanRenderer*) driverData; VulkanCpuBufferContainer *cpuBufferContainer = (VulkanCpuBufferContainer*) cpuBuffer; - if (option == REFRESH_SETDATAOPTIONS_DISCARD && SDL_AtomicGet(&cpuBufferContainer->activeBuffer->vulkanBuffer->referenceCount) > 0) + if (option == REFRESH_SETDATAOPTIONS_SAFEDISCARD && SDL_AtomicGet(&cpuBufferContainer->activeBuffer->vulkanBuffer->referenceCount) > 0) { VULKAN_INTERNAL_DiscardActiveCpuBuffer( renderer,