diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index 8859d2a..15f89bc 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -592,7 +592,7 @@ namespace GamescopeWSILayer { VkResult result = pDispatch->QueuePresentKHR(queue, pPresentInfo); if (forceSuboptimal && result == VK_SUCCESS) return VK_SUBOPTIMAL_KHR; - return VK_SUCCESS; + return result; } static void SetHdrMetadataEXT(