summaryrefslogtreecommitdiffstats
path: root/src/RendererSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererSection.cpp')
-rw-r--r--src/RendererSection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/RendererSection.cpp b/src/RendererSection.cpp
index 16514b2..609333c 100644
--- a/src/RendererSection.cpp
+++ b/src/RendererSection.cpp
@@ -33,15 +33,15 @@ RendererSection::~RendererSection() {
refCounterVbo[VboModels]--;
refCounterVbo[VboColors]--;
refCounterVao[Vao]--;
- if (refCounterVbo[VboTextures] == 0)
+ if (refCounterVbo[VboTextures] <= 0)
glDeleteBuffers(1, &VboTextures);
- if (refCounterVbo[VboModels] == 0)
+ if (refCounterVbo[VboModels] <= 0)
glDeleteBuffers(1, &VboTextures);
- if (refCounterVbo[VboColors] == 0)
+ if (refCounterVbo[VboColors] <= 0)
glDeleteBuffers(1, &VboColors);
- if (refCounterVao[Vao] == 0)
+ if (refCounterVao[Vao] <= 0)
glDeleteVertexArrays(1, &Vao);
}