Merge pull request #8513 from lioncash/bounding-box

VideoCommon/BoundingBox: Make interface for querying bounding box data
This commit is contained in:
Anthony
2019-12-07 18:40:02 -08:00
committed by GitHub
8 changed files with 95 additions and 41 deletions

View File

@ -253,7 +253,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::active && g_ActiveConfig.bBBoxEnable &&
if (BoundingBox::IsEnabled() && g_ActiveConfig.bBBoxEnable &&
g_ActiveConfig.backend_info.bSupportsBBox)
{
g_renderer->BBoxFlush();