From 1161af80594c403233e3d21589af004ee2d75594 Mon Sep 17 00:00:00 2001 From: Techjar Date: Wed, 9 Jun 2021 07:42:21 -0400 Subject: VideoCommon: Abstract bounding box This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend. --- Source/Core/VideoCommon/PixelEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/PixelEngine.cpp') diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp index e73cb936e9..87d58eb010 100644 --- a/Source/Core/VideoCommon/PixelEngine.cpp +++ b/Source/Core/VideoCommon/PixelEngine.cpp @@ -18,6 +18,7 @@ #include "VideoCommon/BoundingBox.h" #include "VideoCommon/Fifo.h" #include "VideoCommon/PerfQueryBase.h" +#include "VideoCommon/RenderBase.h" #include "VideoCommon/VideoBackendBase.h" namespace PixelEngine @@ -231,7 +232,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base) for (int i = 0; i < 4; ++i) { mmio->Register(base | (PE_BBOX_LEFT + 2 * i), MMIO::ComplexRead([i](u32) { - BoundingBox::Disable(); + g_renderer->BBoxDisable(); return g_video_backend->Video_GetBoundingBox(i); }), MMIO::InvalidWrite()); -- cgit v1.2.3