mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-09 10:13:21 +08:00
Add glDeleteProgram call to relevant examples.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user