From 9bd533ebe4cee1dfef9725f32fe0b9ca42f5680d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Dec 2019 10:58:03 -0500 Subject: VideoCommon/BoundingBox: Make interface for querying bounding box data Rather than expose the bounding box members directly, we can instead provide an interface for code to use. This makes it nicer to transition from global data, as the interface function names are already in place. --- Source/Core/VideoCommon/VertexManagerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index f1150dc340..ddbdd7e0f3 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -247,7 +247,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(); -- cgit v1.2.3