From 528abfad760c4b04f020c5ca65177e95a2fdd266 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 22 Dec 2022 17:23:11 -0800 Subject: [PATCH] fix render target destroy segfault --- 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 79d8fa6..71f417e 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -2985,7 +2985,7 @@ static void VULKAN_INTERNAL_RemoveFramebuffersContainingView( for (j = 0; j < hash->colorAttachmentCount; j += 1) { - if (hash->colorAttachmentViews[i] == view) + if (hash->colorAttachmentViews[j] == view) { VULKAN_INTERNAL_QueueDestroyFramebuffer( renderer,