From ec163d242ec88dd07939e5dedcc1e53bf71285c1 Mon Sep 17 00:00:00 2001 From: "re.kovalev" Date: Thu, 21 Jul 2022 16:39:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=87=D0=B8=D1=81=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=BC=D1=8F=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 6380e4b..556b814 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -220,6 +220,13 @@ int main(void) // Удаление шейдерной программы glDeleteProgram(shaderProgram); + + // Удаление VBO + glDeleteBuffers(1, &vertexbuffer); + glDeleteBuffers(1, &elementbuffer); + + // Удаление VAO + glDeleteVertexArrays(1, &VertexArrayID); return 0; }