summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/BoundingBox.cpp
diff options
context:
space:
mode:
authorMichael Maltese <michaeljosephmaltese@gmail.com>2017-03-05 15:17:54 -0800
committerMichael Maltese <michaeljosephmaltese@gmail.com>2017-03-15 17:20:47 -0700
commitde940a5fd6a07728c51d53ebdab7489aa03cdb55 (patch)
treec309017a947d25eede6daf32158b7fa1e713e52d /Source/Core/VideoBackends/OGL/BoundingBox.cpp
parent8e6d25672292d1ca90e5acc6170df0b9cc618db6 (diff)
VideoConfig: add bSupportsFragmentStoresAndAtomics
Diffstat (limited to 'Source/Core/VideoBackends/OGL/BoundingBox.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/BoundingBox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/BoundingBox.cpp b/Source/Core/VideoBackends/OGL/BoundingBox.cpp
index 0ee4bd2afe..6bce10754e 100644
--- a/Source/Core/VideoBackends/OGL/BoundingBox.cpp
+++ b/Source/Core/VideoBackends/OGL/BoundingBox.cpp
@@ -17,7 +17,7 @@ namespace OGL
{
void BoundingBox::Init()
{
- if (g_ActiveConfig.backend_info.bSupportsBBox)
+ if (g_ActiveConfig.backend_info.bSupportsFragmentStoresAndAtomics)
{
int initial_values[4] = {0, 0, 0, 0};
glGenBuffers(1, &s_bbox_buffer_id);
@@ -29,8 +29,10 @@ void BoundingBox::Init()
void BoundingBox::Shutdown()
{
- if (g_ActiveConfig.backend_info.bSupportsBBox)
+ if (g_ActiveConfig.backend_info.bSupportsFragmentStoresAndAtomics)
+ {
glDeleteBuffers(1, &s_bbox_buffer_id);
+ }
}
void BoundingBox::Set(int index, int value)