mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Update debugging example code to match Debugging chapter updates.
This commit is contained in:
@@ -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.
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
@@ -164,6 +164,7 @@ int main()
|
||||
// ------------------------------------------------------------------------
|
||||
glDeleteVertexArrays(2, VAOs);
|
||||
glDeleteBuffers(2, VBOs);
|
||||
glDeleteProgram(shaderProgram);
|
||||
|
||||
// glfw: terminate, clearing all previously allocated GLFW resources.
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user