Skip to content

Commit

Permalink
name variable according to style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Aug 13, 2024
1 parent 4692adc commit c795002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2748,10 +2748,10 @@ void VulkanRenderer::SwapBuffer(bool mainWindow)
presentInfo.waitSemaphoreCount = 1;
presentInfo.pWaitSemaphores = &presentSemaphore;

const bool enable_present_wait = m_featureControl.deviceExtensions.present_wait && chainInfo.m_maxQueued != 0;
const bool enablePresentWait = m_featureControl.deviceExtensions.present_wait && chainInfo.m_maxQueued != 0;

// if present_wait is available, use it to limit CPU run-ahead
if (enable_present_wait)
if (enablePresentWait)
{
presentId.sType = VK_STRUCTURE_TYPE_PRESENT_ID_KHR;
presentId.swapchainCount = 1;
Expand All @@ -2768,7 +2768,7 @@ void VulkanRenderer::SwapBuffer(bool mainWindow)
if(result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR)
chainInfo.m_shouldRecreate = true;

if(enable_present_wait && result == VK_SUCCESS)
if(enablePresentWait && result == VK_SUCCESS)
{
chainInfo.m_numQueued++;
chainInfo.m_presentId++;
Expand Down

0 comments on commit c795002

Please sign in to comment.