Update debugging example code to match Debugging chapter updates.

This commit is contained in:
Joey de Vries
2020-04-29 11:57:45 +02:00
parent 39cdda55e4
commit 6d1136d09a
3 changed files with 15 additions and 13 deletions

View File

@@ -170,6 +170,7 @@ int main()
glDeleteVertexArrays(1, &VAO);
glDeleteBuffers(1, &VBO);
glDeleteBuffers(1, &EBO);
glDeleteProgram(shaderProgram);
// glfw: terminate, clearing all previously allocated GLFW resources.
// ------------------------------------------------------------------

View File

@@ -164,6 +164,7 @@ int main()
// ------------------------------------------------------------------------
glDeleteVertexArrays(2, VAOs);
glDeleteBuffers(2, VBOs);
glDeleteProgram(shaderProgram);
// glfw: terminate, clearing all previously allocated GLFW resources.
// ------------------------------------------------------------------