summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLRender.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2021-06-09 07:42:21 -0400
committerTechjar <tecknojar@gmail.com>2021-10-04 15:51:24 -0400
commit1161af80594c403233e3d21589af004ee2d75594 (patch)
treec20fdec2f9b8777eb62de221a4c89c7f9224d31c /Source/Core/VideoBackends/OGL/OGLRender.cpp
parent7ec02ee4d37cef6a73ac7a678901904ca6855728 (diff)
VideoCommon: Abstract bounding box
This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLRender.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLRender.cpp14
1 files changed, 2 insertions, 12 deletions
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<int>& 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<u16>(BoundingBox::Get(index));
-}
-
-void Renderer::BBoxWriteImpl(int index, u16 value)
-{
- BoundingBox::Set(index, value);
-}
-
-void Renderer::BBoxFlushImpl()
-{
- BoundingBox::Flush();
+ return std::make_unique<OGLBoundingBox>();
}
void Renderer::SetViewport(float x, float y, float width, float height, float near_depth,