diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-12-05 10:58:03 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-12-05 11:48:42 -0500 |
| commit | 9bd533ebe4cee1dfef9725f32fe0b9ca42f5680d (patch) | |
| tree | 4f7b7b1da059b8299e459e76ebbcf930e58c9df0 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 15fc71cfcf5f94221443aaff99ae559fa3cb4633 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index f9be647114..6cff479396 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -279,7 +279,7 @@ static void BPWritten(const BPCmd& bp) // 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; + BoundingBox::Disable(); PixelShaderManager::SetBoundingBoxActive(false); float yScale; @@ -448,8 +448,8 @@ static void BPWritten(const BPCmd& bp) case BPMEM_CLEARBBOX1: case BPMEM_CLEARBBOX2: { - u8 offset = bp.address & 2; - BoundingBox::active = true; + const u8 offset = bp.address & 2; + BoundingBox::Enable(); PixelShaderManager::SetBoundingBoxActive(true); if (g_ActiveConfig.backend_info.bSupportsBBox && g_ActiveConfig.bBBoxEnable) |
