From 2f77558baddd674d4fe97de02e903494597f88c4 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 10 Feb 2025 12:31:25 -0800 Subject: [PATCH] fix comment --- src/gpu/vulkan/SDL_gpu_vulkan.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index 5063df16c9..7b1da8730b 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -6814,15 +6814,12 @@ static SDL_GPUTransferBuffer *VULKAN_CreateTransferBuffer( Uint32 size, const char *debugName) { - // We use dedicated allocations for download buffers to avoid an issue - // where a defrag is triggered after submitting a download but before - // waiting on the fence. return (SDL_GPUTransferBuffer *)VULKAN_INTERNAL_CreateBufferContainer( (VulkanRenderer *)driverData, (VkDeviceSize)size, 0, VULKAN_BUFFER_TYPE_TRANSFER, - true, + true, // Dedicated allocations preserve the data even if a defrag is triggered. debugName); }