# HG changeset patch # User Sam # Date 1671896289 -25200 # Node ID af43f2acf2b92665f4b0a179aa598053a4d434f0 # Parent ca0ae5a7cf2fcfec9011116a5d5edc29c89a1c61# Parent 9eeaeb35eb1cf324a185f05c1aac79f0e63dc37c Merge /mnt/Users/sam/git/vulkan diff -r 9eeaeb35eb1c -r af43f2acf2b9 src/engine.nim --- a/src/engine.nim Sat Dec 24 22:32:46 2022 +0700 +++ b/src/engine.nim Sat Dec 24 22:38:09 2022 +0700 @@ -557,7 +557,6 @@ if nextImageResult == VK_ERROR_OUT_OF_DATE_KHR: vulkan.frameDimension = window.getFrameDimension(vulkan.device.physicalDevice.device, vulkan.surface) (vulkan.swapchain, vulkan.framebuffers) = vulkan.recreateSwapchain() - return elif not (nextImageResult in [VK_SUCCESS, VK_SUBOPTIMAL_KHR]): raise newException(Exception, "Vulkan error: vkAcquireNextImageKHR returned " & $nextImageResult) checkVkResult vulkan.device.device.vkResetFences(1, addr(vulkan.inFlightFences[currentFrame])) @@ -642,5 +641,5 @@ when DEBUG_LOG: engine.vulkan.instance.vkDestroyDebugUtilsMessengerEXT(engine.vulkan.debugMessenger, nil) glslang_finalize_process() + engine.window.trash() engine.vulkan.instance.vkDestroyInstance(nil) - engine.window.trash()