changeset 152:260965aefc39

fix: wrong layers activated
author Sam <sam@basx.dev>
date Thu, 27 Apr 2023 20:48:48 +0700
parents a46923cb0790
children c6f6757e8126
files src/semicongine/engine.nim
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/semicongine/engine.nim	Thu Apr 27 20:43:27 2023 +0700
+++ b/src/semicongine/engine.nim	Thu Apr 27 20:48:48 2023 +0700
@@ -74,7 +74,9 @@
 
   if debug:
     instanceExtensions.add "VK_EXT_debug_utils"
-    enabledLayers.add @["VK_LAYER_KHRONOS_validation", "VK_LAYER_MESA_overlay"]
+    enabledLayers.add "VK_LAYER_KHRONOS_validation"
+    if defined(linux):
+      enabledLayers.add "VK_LAYER_MESA_overlay"
   result.instance = result.window.createInstance(
     vulkanVersion=VK_MAKE_API_VERSION(0, 1, 3, 0),
     instanceExtensions=instanceExtensions,