# HG changeset patch # User Sam # Date 1682603328 -25200 # Node ID 260965aefc39f26d20c0e1552ad6e052992d2d09 # Parent a46923cb0790957e9a66b6a63d3bc7c6a98b6db4 fix: wrong layers activated diff -r a46923cb0790 -r 260965aefc39 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,