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

@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode)
{
// When a user presses the escape key, we set the WindowShouldClose property to true, closing the application
// when a user presses the escape key, we set the WindowShouldClose property to true, closing the application
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
glfwSetWindowShouldClose(window, true);
if (key >= 0 && key < 1024)

View File

@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode)
{
// When a user presses the escape key, we set the WindowShouldClose property to true, closing the application
// when a user presses the escape key, we set the WindowShouldClose property to true, closing the application
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
glfwSetWindowShouldClose(window, true);
if (key >= 0 && key < 1024)