changeset 613:40f5d804eca6

fix: wrong layers activated
author Sam <sam@basx.dev>
date Thu, 27 Apr 2023 20:48:48 +0700
parents a21748450a81
children a54a7fe28430
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,