From 6d6cc98f0fd905e60f562902c393b19d89ba38b4 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 3 Jan 2023 03:48:20 +0000 Subject: [PATCH] layer: Return result from QueuePresentKHR when not forcing suboptimal --- layer/VkLayer_FROG_gamescope_wsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(