From 2c9ec6cb8abba5a4dfd7a3792b0d866ed4898118 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Dec 2019 11:55:21 -0500 Subject: 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. --- Source/Core/VideoCommon/BoundingBox.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/VideoCommon/BoundingBox.cpp') 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 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() -- cgit v1.2.3