summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BoundingBox.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/BoundingBox.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/BoundingBox.cpp')
-rw-r--r--Source/Core/VideoCommon/BoundingBox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/BoundingBox.cpp b/Source/Core/VideoCommon/BoundingBox.cpp
index 7c2127d353..805431c7d6 100644
--- a/Source/Core/VideoCommon/BoundingBox.cpp
+++ b/Source/Core/VideoCommon/BoundingBox.cpp
@@ -9,6 +9,7 @@
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
+#include "VideoCommon/PixelShaderManager.h"
namespace BoundingBox
{
@@ -29,11 +30,13 @@ std::array<u16, 4> s_coordinates{
void Enable()
{
s_is_active = true;
+ PixelShaderManager::SetBoundingBoxActive(s_is_active);
}
void Disable()
{
s_is_active = false;
+ PixelShaderManager::SetBoundingBoxActive(s_is_active);
}
bool IsEnabled()