From 9e65c01b82e00bb6532196872ebb847b34f18c2a 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 2e3b1e5..3257346 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -221,4 +221,14 @@ int main(void) // Удаление шейдерной программы glDeleteProgram(shaderProgram); + + // Удаление VBO + glDeleteBuffers(1, &vertexbuffer); + glDeleteBuffers(1, &elementbuffer); + + // Удаление VAO + glDeleteVertexArrays(1, &VertexArrayID); + + // Отключение атрибутов + glDisableVertexAttribArray(0); }