summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-12-05 11:55:21 -0500
committerLioncash <mathew1800@gmail.com>2019-12-05 11:57:58 -0500
commit2c9ec6cb8abba5a4dfd7a3792b0d866ed4898118 (patch)
treec0689e9998b852a462ebe28ec5f2c1c08547f52d /Source/Core/VideoCommon/BPStructs.cpp
parent9bd533ebe4cee1dfef9725f32fe0b9ca42f5680d (diff)
VideoCommon/BoundingBox: Move PixelShaderManager::SetBoundingBoxActive() calls into Enable()/Disable()
Now that we have an actual interface to manage things, we can stop duplicating the calls to to the pixel shader manager and remove the need to remember to actually do so when disabling or enabling the bounding box.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index 6cff479396..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::Disable();
- PixelShaderManager::SetBoundingBoxActive(false);
float yScale;
if (PE_copy.scale_invert)
@@ -450,7 +448,6 @@ static void BPWritten(const BPCmd& bp)
{
const u8 offset = bp.address & 2;
BoundingBox::Enable();
- PixelShaderManager::SetBoundingBoxActive(true);
if (g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable)
{