diff options
| author | Michael Maltese <michaeljosephmaltese@gmail.com> | 2017-03-09 15:33:10 -0800 |
|---|---|---|
| committer | Michael Maltese <michaeljosephmaltese@gmail.com> | 2017-03-15 17:41:33 -0700 |
| commit | 53224d41d05a9ec70d0a2715e1a7601a0e60bb14 (patch) | |
| tree | cef3a356177342050dbb3f48a3fe58f4cab50691 /Source/Core/VideoBackends/OGL/BoundingBox.cpp | |
| parent | ba6e917b49fcb192bc658557742106e29159dff7 (diff) | |
OGL: only create stencil buffer when needed
Diffstat (limited to 'Source/Core/VideoBackends/OGL/BoundingBox.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/BoundingBox.cpp | 6 |
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; +} }; |
