diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2025-10-29 00:25:11 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2025-10-31 13:27:50 -0500 |
| commit | ee7c476e24d59af2c6b8e24486cd08ff09946112 (patch) | |
| tree | c4e95333a7d2465fa10c955fbb0812c754d9166c /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | b920182c97703b3df0fcb44cebdd6d1cc5485fcc (diff) | |
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 46f8732c2f..e556af7b1d 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 |
