From fd94ff252d700fb6594bb4eeadfe92e23cd881e9 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 30 Sep 2024 00:39:54 -0500 Subject: [PATCH] VideoCommon: Dirty pixel shader manager on efb scale changes --- Source/Core/VideoCommon/FramebufferManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/VideoCommon/FramebufferManager.cpp b/Source/Core/VideoCommon/FramebufferManager.cpp index bae9b1d15c..3c83bce2c4 100644 --- a/Source/Core/VideoCommon/FramebufferManager.cpp +++ b/Source/Core/VideoCommon/FramebufferManager.cpp @@ -293,6 +293,10 @@ bool FramebufferManager::CreateEFBFramebuffer() g_gfx->SetAndClearFramebuffer(m_efb_framebuffer.get(), {{0.0f, 0.0f, 0.0f, 0.0f}}, g_ActiveConfig.backend_info.bSupportsReversedDepthRange ? 1.0f : 0.0f); + + // Pixel Shader uses EFB scale as a constant, dirty that in case it changed + Core::System::GetInstance().GetPixelShaderManager().Dirty(); + return true; }