Add glDeleteProgram call to relevant examples.

This commit is contained in:
Joey de Vries
2020-04-29 10:41:28 +02:00
parent 82b066067f
commit 88ab67dad2
7 changed files with 8 additions and 2 deletions

View File

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