mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-11 19:13:23 +08:00
Add glDeleteProgram call to relevant examples.
This commit is contained in:
@@ -161,6 +161,7 @@ int main()
|
||||
// ------------------------------------------------------------------------
|
||||
glDeleteVertexArrays(1, &VAO);
|
||||
glDeleteBuffers(1, &VBO);
|
||||
glDeleteProgram(shaderProgram);
|
||||
|
||||
// glfw: terminate, clearing all previously allocated GLFW resources.
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user