changeset 1311:b22c3b7bc026

fix: release build error
author sam <sam@basx.dev>
date Fri, 09 Aug 2024 12:46:38 +0700
parents 3f79b3efca95
children f0020945d016
files semicongine/rendering.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/rendering.nim	Fri Aug 09 07:18:24 2024 +0700
+++ b/semicongine/rendering.nim	Fri Aug 09 12:46:38 2024 +0700
@@ -231,7 +231,7 @@
     putEnv("VK_LAYER_ENABLES", "VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_AMD,VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_NVIDIA,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXTVK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT")
   else:
     let requiredExtensions = REQUIRED_PLATFORM_EXTENSIONS & @["VK_KHR_surface"]
-    let layers: seq[string]
+    let layers: seq[string] = @[]
 
   var
     layersC = allocCStringArray(layers)