Change gameShouldTerminate
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
void EventHandler::handleEvents(GLFWwindow *window) {
|
||||
glfwPollEvents();
|
||||
gameShouldTerminate = glfwWindowShouldClose(window);
|
||||
|
||||
if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
|
||||
glfwSetWindowShouldClose(window, true);
|
||||
|
||||
Reference in New Issue
Block a user