summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2019-12-07 18:40:02 -0800
committerGitHub <noreply@github.com>2019-12-07 18:40:02 -0800
commitfdb78b64e18baaaf1c8851fde3b5ee1d1da4d775 (patch)
treea4530f2719ab3b9a6103bec042f5416a9ff7a648 /Source/Core/VideoCommon/BPStructs.cpp
parentb39756dbce310f658b766597054c59662ca930e5 (diff)
parent2c9ec6cb8abba5a4dfd7a3792b0d866ed4898118 (diff)
Merge pull request #8513 from lioncash/bounding-box
VideoCommon/BoundingBox: Make interface for querying bounding box data
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index f9be647114..e8b0ee1f32 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -278,9 +278,7 @@ static void BPWritten(const BPCmd& bp)
// We should be able to get away with deactivating the current bbox tracking
// here. Not sure if there's a better spot to put this.
// the number of lines copied is determined by the y scale * source efb height
-
- BoundingBox::active = false;
- PixelShaderManager::SetBoundingBoxActive(false);
+ BoundingBox::Disable();
float yScale;
if (PE_copy.scale_invert)
@@ -448,9 +446,8 @@ static void BPWritten(const BPCmd& bp)
case BPMEM_CLEARBBOX1:
case BPMEM_CLEARBBOX2:
{
- u8 offset = bp.address & 2;
- BoundingBox::active = true;
- PixelShaderManager::SetBoundingBoxActive(true);
+ const u8 offset = bp.address & 2;
+ BoundingBox::Enable();
if (g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable)
{