mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-04 05:35:00 -06:00
no need to recreate swapchain when sRGB changes
This commit is contained in:
parent
5c0f611e2f
commit
56d1f8321b
@ -2773,10 +2773,6 @@ bool VulkanRenderer::UpdateSwapchainProperties(bool mainWindow)
|
|||||||
if(chainInfo.m_vsyncState != configValue)
|
if(chainInfo.m_vsyncState != configValue)
|
||||||
stateChanged = true;
|
stateChanged = true;
|
||||||
|
|
||||||
const bool latteBufferUsesSRGB = mainWindow ? LatteGPUState.tvBufferUsesSRGB : LatteGPUState.drcBufferUsesSRGB;
|
|
||||||
if (chainInfo.m_usesSRGB != latteBufferUsesSRGB)
|
|
||||||
stateChanged = true;
|
|
||||||
|
|
||||||
int width, height;
|
int width, height;
|
||||||
if (mainWindow)
|
if (mainWindow)
|
||||||
WindowSystem::GetWindowPhysSize(width, height);
|
WindowSystem::GetWindowPhysSize(width, height);
|
||||||
@ -2801,7 +2797,7 @@ bool VulkanRenderer::UpdateSwapchainProperties(bool mainWindow)
|
|||||||
|
|
||||||
chainInfo.m_shouldRecreate = false;
|
chainInfo.m_shouldRecreate = false;
|
||||||
chainInfo.m_vsyncState = configValue;
|
chainInfo.m_vsyncState = configValue;
|
||||||
chainInfo.m_usesSRGB = latteBufferUsesSRGB;
|
chainInfo.m_usesSRGB = mainWindow ? LatteGPUState.tvBufferUsesSRGB : LatteGPUState.drcBufferUsesSRGB;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user