Move BoundingBox out of RenderBase

They were essentially just pass-though methods
This commit is contained in:
Scott Mansell
2023-01-30 03:40:15 +13:00
parent 35a69cb1bb
commit 99d3e489ea
11 changed files with 38 additions and 88 deletions

View File

@ -324,10 +324,10 @@ 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 (g_renderer->IsBBoxEnabled() && g_ActiveConfig.bBBoxEnable &&
if (g_bounding_box->IsEnabled() && g_ActiveConfig.bBBoxEnable &&
g_ActiveConfig.backend_info.bSupportsBBox)
{
g_renderer->BBoxFlush();
g_bounding_box->Flush();
}
g_gfx->DrawIndexed(base_index, num_indices, base_vertex);