From f24107368fa47f911f4491f644ff3755525c91e1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 19 Aug 2017 20:20:51 +0500 Subject: 2017-08-19 --- src/RendererSection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/RendererSection.cpp') 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); } -- cgit v1.2.3