From 83c2372499c4e2453188369b566bcc2a44b561fe Mon Sep 17 00:00:00 2001
From: cosmonaut <evan@moonside.games>
Date: Wed, 2 Mar 2022 10:02:07 -0800
Subject: [PATCH] only mark swapchain as needing recreate if it exists

---
 src/Refresh_Driver_Vulkan.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c
index b199b73..b317dba 100644
--- a/src/Refresh_Driver_Vulkan.c
+++ b/src/Refresh_Driver_Vulkan.c
@@ -1,4 +1,4 @@
-/* Refresh - XNA-inspired 3D Graphics Library with modern capabilities
+/* Refresh - XNA-inspired 3D Graphics Library with modern capabilities
  *
  * Copyright (c) 2020 Evan Hemsley
  *
@@ -8628,12 +8628,12 @@ static Refresh_Texture* VULKAN_AcquireSwapchainTexture(
 
 			vulkanCommandBuffer->signalSemaphores[vulkanCommandBuffer->signalSemaphoreCount] = swapchainData->renderFinishedSemaphore;
 			vulkanCommandBuffer->signalSemaphoreCount += 1;
-		}
-	}
 
-	if (!validSwapchainExists || acquireResult == VK_SUBOPTIMAL_KHR)
-	{
-		swapchainData->needsRecreate = 1;
+			if (acquireResult == VK_SUBOPTIMAL_KHR)
+			{
+				swapchainData->needsRecreate = 1;
+			}
+		}
 	}
 
 	return (Refresh_Texture*) swapchainTexture;