rename DISCARD to SAFEDISCARD

pull/50/head
cosmonaut 2024-02-22 10:35:27 -08:00
parent aedc575885
commit 20c369845f
1 changed files with 1 additions and 1 deletions

View File

@ -8485,7 +8485,7 @@ static void VULKAN_SetData(
VulkanRenderer *renderer = (VulkanRenderer*) driverData; VulkanRenderer *renderer = (VulkanRenderer*) driverData;
VulkanCpuBufferContainer *cpuBufferContainer = (VulkanCpuBufferContainer*) cpuBuffer; 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( VULKAN_INTERNAL_DiscardActiveCpuBuffer(
renderer, renderer,