diff options
| author | Techjar <tecknojar@gmail.com> | 2021-06-09 07:42:21 -0400 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2021-10-04 15:51:24 -0400 |
| commit | 1161af80594c403233e3d21589af004ee2d75594 (patch) | |
| tree | c20fdec2f9b8777eb62de221a4c89c7f9224d31c /Source/Core/VideoCommon/VertexManagerBase.cpp | |
| parent | 7ec02ee4d37cef6a73ac7a678901904ca6855728 (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/VideoCommon/VertexManagerBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexManagerBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index f78ec9fca2..73ab9af3c2 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -269,7 +269,7 @@ void VertexManagerBase::CommitBuffer(u32 num_vertices, u32 vertex_stride, u32 nu void VertexManagerBase::DrawCurrentBatch(u32 base_index, u32 num_indices, u32 base_vertex) { // If bounding box is enabled, we need to flush any changes first, then invalidate what we have. - if (BoundingBox::IsEnabled() && g_ActiveConfig.bBBoxEnable && + if (g_renderer->IsBBoxEnabled() && g_ActiveConfig.bBBoxEnable && g_ActiveConfig.backend_info.bSupportsBBox) { g_renderer->BBoxFlush(); |
