From 4774fe34456801a677c30842d9a8db4a9f408426 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Thu, 29 Jun 2023 03:59:02 +0200 Subject: [PATCH] VKGfx: Add parentheses around ambiguous if statements. --- Source/Core/VideoBackends/Vulkan/VKGfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp index 7364541426..e514979c65 100644 --- a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp @@ -392,14 +392,14 @@ void VKGfx::OnConfigChanged(u32 bits) g_object_cache->ReloadPipelineCache(); // For vsync, we need to change the present mode, which means recreating the swap chain. - if (m_swap_chain && bits & CONFIG_CHANGE_BIT_VSYNC) + if (m_swap_chain && (bits & CONFIG_CHANGE_BIT_VSYNC)) { ExecuteCommandBuffer(false, true); m_swap_chain->SetVSync(g_ActiveConfig.bVSyncActive); } // For quad-buffered stereo we need to change the layer count, so recreate the swap chain. - if (m_swap_chain && (bits & CONFIG_CHANGE_BIT_STEREO_MODE) || (bits & CONFIG_CHANGE_BIT_HDR)) + if (m_swap_chain && ((bits & CONFIG_CHANGE_BIT_STEREO_MODE) || (bits & CONFIG_CHANGE_BIT_HDR))) { ExecuteCommandBuffer(false, true); m_swap_chain->RecreateSwapChain();