# HG changeset patch # User Sam # Date 1682603328 -25200 # Node ID 40f5d804eca68ba29181c63b9336da382631ce47 # Parent a21748450a81de5f69eb5082c643f96dff902d6b fix: wrong layers activated diff -r a21748450a81 -r 40f5d804eca6 src/semicongine/engine.nim --- 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,