changeset 193:ee1aea493736

add: correct cleanup
author Sam <sam@basx.dev>
date Sun, 07 May 2023 00:22:58 +0700
parents 659992f14dd6
children 93f661a20f74
files src/semicongine/renderer.nim
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/semicongine/renderer.nim	Sat May 06 23:06:33 2023 +0700
+++ b/src/semicongine/renderer.nim	Sun May 07 00:22:58 2023 +0700
@@ -295,5 +295,7 @@
     for buffer in data.uniformBuffers.mitems:
       assert buffer.vk.valid
       buffer.destroy()
+    for texture in data.textures.mvalues:
+      texture.destroy()
   renderer.renderPass.destroy()
   renderer.swapchain.destroy()