summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractGfx.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-11-02 13:17:38 -0500
committerGitHub <noreply@github.com>2025-11-02 13:17:38 -0500
commita4a4416ff20db79a57789931449bc80e38800b8d (patch)
treee86eeabcaaff6c137db1e2b8e2efac6783bc677c /Source/Core/VideoCommon/AbstractGfx.cpp
parent1d9c743ef793d88b53d31bb31079435c9a2b8e5f (diff)
parent6728007cb4832c80745df73f980ccff53691368f (diff)
Merge pull request #14042 from iwubcode/bp_functions_global
VideoCommon: move global variables out of BPFunctions
Diffstat (limited to 'Source/Core/VideoCommon/AbstractGfx.cpp')
-rw-r--r--Source/Core/VideoCommon/AbstractGfx.cpp4
1 files changed, 3 insertions, 1 deletions
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<AbstractGfx> 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)