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/AbstractGfx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/AbstractGfx.cpp') diff --git a/Source/Core/VideoCommon/AbstractGfx.cpp b/Source/Core/VideoCommon/AbstractGfx.cpp index 27424b25f5..90b85ddfff 100644 --- a/Source/Core/VideoCommon/AbstractGfx.cpp +++ b/Source/Core/VideoCommon/AbstractGfx.cpp @@ -12,6 +12,7 @@ #include "VideoCommon/ShaderCache.h" #include "VideoCommon/VertexManagerBase.h" #include "VideoCommon/VideoConfig.h" +#include "VideoCommon/XFMemory.h" std::unique_ptr g_gfx; @@ -35,7 +36,8 @@ void AbstractGfx::EndUtilityDrawing() { // Reset framebuffer/scissor/viewport. Pipeline will be reset at next draw. g_framebuffer_manager->BindEFBFramebuffer(); - BPFunctions::SetScissorAndViewport(); + BPFunctions::SetScissorAndViewport(g_framebuffer_manager.get(), bpmem.scissorTL, bpmem.scissorBR, + bpmem.scissorOffset, xfmem.viewport); } void AbstractGfx::SetFramebuffer(AbstractFramebuffer* framebuffer) -- cgit v1.2.3