diff options
| author | Mai <mai.iam2048@gmail.com> | 2022-12-28 00:59:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-28 00:59:03 +0000 |
| commit | 0900e68986a4fa2254fb3c459f73af4815979e45 (patch) | |
| tree | 1c69cbfcc29dba6cb354823c23c75c546bb0b57a /Source/Core/VideoCommon/PixelEngine.cpp | |
| parent | 9e9910df8b0c965e1a496d479ad94bc78f918817 (diff) | |
| parent | 4549fb4acb1ab520dc6481fe4443cdd3d46bd8c2 (diff) | |
Merge pull request #11384 from AdmiralCurtiss/globals-pixelshadermanager
VideoCommon: De-globalize PixelShaderManager class.
Diffstat (limited to 'Source/Core/VideoCommon/PixelEngine.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelEngine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp index b1ede079d0..6cc9c05c02 100644 --- a/Source/Core/VideoCommon/PixelEngine.cpp +++ b/Source/Core/VideoCommon/PixelEngine.cpp @@ -146,8 +146,9 @@ void PixelEngineManager::RegisterMMIO(MMIO::Mapping* mmio, u32 base) // BBOX registers, readonly and need to update a flag. for (int i = 0; i < 4; ++i) { - mmio->Register(base | (PE_BBOX_LEFT + 2 * i), MMIO::ComplexRead<u16>([i](Core::System&, u32) { - g_renderer->BBoxDisable(); + mmio->Register(base | (PE_BBOX_LEFT + 2 * i), + MMIO::ComplexRead<u16>([i](Core::System& system, u32) { + g_renderer->BBoxDisable(system.GetPixelShaderManager()); return g_video_backend->Video_GetBoundingBox(i); }), MMIO::InvalidWrite<u16>()); |
