diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-11-02 13:17:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-02 13:17:38 -0500 |
| commit | a4a4416ff20db79a57789931449bc80e38800b8d (patch) | |
| tree | e86eeabcaaff6c137db1e2b8e2efac6783bc677c /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | 1d9c743ef793d88b53d31bb31079435c9a2b8e5f (diff) | |
| parent | 6728007cb4832c80745df73f980ccff53691368f (diff) | |
Merge pull request #14042 from iwubcode/bp_functions_global
VideoCommon: move global variables out of BPFunctions
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 60668f9f2d..0214dab9dd 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -20,6 +20,7 @@ #include "VideoCommon/AbstractGfx.h" #include "VideoCommon/BPFunctions.h" +#include "VideoCommon/BPMemory.h" #include "VideoCommon/DriverDetails.h" #include "VideoCommon/Fifo.h" #include "VideoCommon/FramebufferManager.h" @@ -30,6 +31,7 @@ #include "VideoCommon/ShaderGenCommon.h" #include "VideoCommon/TextureCacheBase.h" #include "VideoCommon/VertexManagerBase.h" +#include "VideoCommon/XFMemory.h" VideoConfig g_Config; VideoConfig g_ActiveConfig; @@ -383,7 +385,8 @@ void CheckForConfigChanges() // Viewport and scissor rect have to be reset since they will be scaled differently. if (changed_bits & CONFIG_CHANGE_BIT_TARGET_SIZE) { - BPFunctions::SetScissorAndViewport(); + BPFunctions::SetScissorAndViewport(g_framebuffer_manager.get(), bpmem.scissorTL, + bpmem.scissorBR, bpmem.scissorOffset, xfmem.viewport); } // Notify all listeners |
