summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BoundingBox.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-10 15:06:19 -0400
committerGitHub <noreply@github.com>2025-03-10 15:06:19 -0400
commit5ed8b7bc9d8f70d5dae4f009939ac9715adf83b4 (patch)
tree946de379d9606f4ba12e76f8bec7483fc282833c /Source/Core/VideoCommon/BoundingBox.cpp
parentd45e6c67293f10be4159d4e222ad3e903d7a835b (diff)
parentc18c039089bdc27cbccf92a9053ed80bb161a9b9 (diff)
Merge pull request #13403 from jordan-woyak/backend_info
VideoCommon: Move backend_info out of VideoConfig struct.
Diffstat (limited to 'Source/Core/VideoCommon/BoundingBox.cpp')
-rw-r--r--Source/Core/VideoCommon/BoundingBox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/BoundingBox.cpp b/Source/Core/VideoCommon/BoundingBox.cpp
index 94e7eaa18c..233ea10902 100644
--- a/Source/Core/VideoCommon/BoundingBox.cpp
+++ b/Source/Core/VideoCommon/BoundingBox.cpp
@@ -29,7 +29,7 @@ void BoundingBox::Disable(PixelShaderManager& pixel_shader_manager)
void BoundingBox::Flush()
{
- if (!g_ActiveConfig.bBBoxEnable || !g_ActiveConfig.backend_info.bSupportsBBox)
+ if (!g_ActiveConfig.bBBoxEnable || !g_backend_info.bSupportsBBox)
return;
m_is_valid = false;
@@ -57,7 +57,7 @@ void BoundingBox::Flush()
void BoundingBox::Readback()
{
- if (!g_ActiveConfig.backend_info.bSupportsBBox)
+ if (!g_backend_info.bSupportsBBox)
return;
auto read_values = Read(0, NUM_BBOX_VALUES);
@@ -76,7 +76,7 @@ u16 BoundingBox::Get(u32 index)
{
ASSERT(index < NUM_BBOX_VALUES);
- if (!g_ActiveConfig.bBBoxEnable || !g_ActiveConfig.backend_info.bSupportsBBox)
+ if (!g_ActiveConfig.bBBoxEnable || !g_backend_info.bSupportsBBox)
return m_bounding_box_fallback[index];
if (!m_is_valid)
@@ -89,7 +89,7 @@ void BoundingBox::Set(u32 index, u16 value)
{
ASSERT(index < NUM_BBOX_VALUES);
- if (!g_ActiveConfig.bBBoxEnable || !g_ActiveConfig.backend_info.bSupportsBBox)
+ if (!g_ActiveConfig.bBBoxEnable || !g_backend_info.bSupportsBBox)
{
m_bounding_box_fallback[index] = value;
return;
@@ -120,12 +120,12 @@ void BoundingBox::DoState(PointerWrap& p)
{
p.Do(backend_values);
- if (g_ActiveConfig.backend_info.bSupportsBBox)
+ if (g_backend_info.bSupportsBBox)
Write(0, backend_values);
}
else
{
- if (g_ActiveConfig.backend_info.bSupportsBBox)
+ if (g_backend_info.bSupportsBBox)
backend_values = Read(0, NUM_BBOX_VALUES);
p.Do(backend_values);