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/VideoBackends/Software/Rasterizer.cpp | |
| parent | b920182c97703b3df0fcb44cebdd6d1cc5485fcc (diff) | |
VideoCommon: move global variables out of BPFunctions
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Rasterizer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp index a1d4dda0d3..ebd6033ae4 100644 --- a/Source/Core/VideoBackends/Software/Rasterizer.cpp +++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp @@ -18,6 +18,7 @@ #include "VideoCommon/PerfQueryBase.h" #include "VideoCommon/Statistics.h" #include "VideoCommon/VideoCommon.h" +#include "VideoCommon/XFMemory.h" namespace Rasterizer { @@ -113,7 +114,9 @@ void Init() void ScissorChanged() { - scissors = std::move(BPFunctions::ComputeScissorRects().m_result); + auto scissor_result = BPFunctions::ComputeScissorRects(bpmem.scissorTL, bpmem.scissorBR, + bpmem.scissorOffset, xfmem.viewport); + scissors = std::move(scissor_result.m_result); } // Returns approximation of log2(f) in s28.4 |
