From f01d5d817afde16e4126ccecf400ad1b51490fb1 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 4 Dec 2023 17:28:25 -0800 Subject: [PATCH] Vulkan: fix some missed cleanup in DestroyDevice --- src/Refresh_Driver_Vulkan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index df9332d..2329274 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -3598,6 +3598,8 @@ static void VULKAN_INTERNAL_DestroyCommandPool( SDL_free(commandBuffer->transferBuffers); SDL_free(commandBuffer->boundUniformBuffers); SDL_free(commandBuffer->boundDescriptorSetDatas); + SDL_free(commandBuffer->boundComputeBuffers); + SDL_free(commandBuffer->boundComputeTextures); SDL_free(commandBuffer->usedBuffers); SDL_free(commandBuffer->usedTextures); SDL_free(commandBuffer->usedSamplers); @@ -5407,6 +5409,7 @@ static void VULKAN_DestroyDevice( SDL_free(renderer->computePipelinesToDestroy); SDL_free(renderer->shaderModulesToDestroy); SDL_free(renderer->samplersToDestroy); + SDL_free(renderer->framebuffersToDestroy); SDL_DestroyMutex(renderer->allocatorLock); SDL_DestroyMutex(renderer->disposeLock);