From 725bd64ec294b23242b721fc5a9b9907f807858b Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 27 Dec 2022 17:42:02 +0100 Subject: VideoCommon: De-globalize PixelShaderManager class. --- Source/Core/VideoCommon/PixelEngine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/PixelEngine.cpp') 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([i](Core::System&, u32) { - g_renderer->BBoxDisable(); + mmio->Register(base | (PE_BBOX_LEFT + 2 * i), + MMIO::ComplexRead([i](Core::System& system, u32) { + g_renderer->BBoxDisable(system.GetPixelShaderManager()); return g_video_backend->Video_GetBoundingBox(i); }), MMIO::InvalidWrite()); -- cgit v1.2.3