mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Merge pull request #12008 from AdmiralCurtiss/vkgfx-parens
VKGfx: Add parentheses around ambiguous if statements.
This commit is contained in:
@ -392,14 +392,14 @@ void VKGfx::OnConfigChanged(u32 bits)
|
|||||||
g_object_cache->ReloadPipelineCache();
|
g_object_cache->ReloadPipelineCache();
|
||||||
|
|
||||||
// For vsync, we need to change the present mode, which means recreating the swap chain.
|
// 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);
|
ExecuteCommandBuffer(false, true);
|
||||||
m_swap_chain->SetVSync(g_ActiveConfig.bVSyncActive);
|
m_swap_chain->SetVSync(g_ActiveConfig.bVSyncActive);
|
||||||
}
|
}
|
||||||
|
|
||||||
// For quad-buffered stereo we need to change the layer count, so recreate the swap chain.
|
// 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);
|
ExecuteCommandBuffer(false, true);
|
||||||
m_swap_chain->RecreateSwapChain();
|
m_swap_chain->RecreateSwapChain();
|
||||||
|
Reference in New Issue
Block a user