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/VideoBackends/OGL/OGLRender.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'Source/Core/VideoBackends/OGL/OGLRender.cpp') diff --git a/Source/Core/VideoBackends/OGL/OGLRender.cpp b/Source/Core/VideoBackends/OGL/OGLRender.cpp index 5b4f4f53eb..a7359358b5 100644 --- a/Source/Core/VideoBackends/OGL/OGLRender.cpp +++ b/Source/Core/VideoBackends/OGL/OGLRender.cpp @@ -851,19 +851,9 @@ void Renderer::SetScissorRect(const MathUtil::Rectangle& rc) glScissor(rc.left, rc.top, rc.GetWidth(), rc.GetHeight()); } -u16 Renderer::BBoxReadImpl(int index) +std::unique_ptr<::BoundingBox> Renderer::CreateBoundingBox() const { - return static_cast(BoundingBox::Get(index)); -} - -void Renderer::BBoxWriteImpl(int index, u16 value) -{ - BoundingBox::Set(index, value); -} - -void Renderer::BBoxFlushImpl() -{ - BoundingBox::Flush(); + return std::make_unique(); } void Renderer::SetViewport(float x, float y, float width, float height, float near_depth, -- cgit v1.2.3