summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/BoundingBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/OGL/BoundingBox.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/BoundingBox.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/BoundingBox.cpp b/Source/Core/VideoBackends/OGL/BoundingBox.cpp
index 44ba0ab118..2d370a115d 100644
--- a/Source/Core/VideoBackends/OGL/BoundingBox.cpp
+++ b/Source/Core/VideoBackends/OGL/BoundingBox.cpp
@@ -167,4 +167,10 @@ void BoundingBox::StencilWasUpdated()
s_stencil_updated = true;
s_stencil_cleared = false;
}
+
+bool BoundingBox::NeedsStencilBuffer()
+{
+ return g_ActiveConfig.bBBoxEnable &&
+ !g_ActiveConfig.backend_info.bSupportsFragmentStoresAndAtomics;
+}
};