Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12008 from AdmiralCurtiss/vkgfx-parens
VKGfx: Add parentheses around ambiguous if statements.
  • Loading branch information
JosJuice committed Jun 29, 2023
2 parents 61c45e8 + 4774fe3 commit 38fe7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoBackends/Vulkan/VKGfx.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 38fe7ac

Please sign in to comment.