From ee7c476e24d59af2c6b8e24486cd08ff09946112 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Wed, 29 Oct 2025 00:25:11 -0500 Subject: VideoCommon: move global variables out of BPFunctions --- Source/Core/VideoCommon/VideoConfig.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') 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 -- cgit v1.2.3