From acef4c24edaecad642b1d4c046fd0afea0d3f09f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 5 May 2023 20:18:46 +0100 Subject: [PATCH] layer: Enable KHR_present_wait driconf in the layer --- layer/VkLayer_FROG_gamescope_wsi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index 04ef4d8..3a44bc4 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -114,6 +114,8 @@ namespace GamescopeWSILayer { createInfo.enabledExtensionCount = uint32_t(enabledExts.size()); createInfo.ppEnabledExtensionNames = enabledExts.data(); + setenv("vk_khr_present_wait", "true", 0); + VkResult result = pfnCreateInstanceProc(&createInfo, pAllocator, pInstance); if (result != VK_SUCCESS) return result;