From 86be0a7145d476e7abb374fd18cba75cf7f605f8 Mon Sep 17 00:00:00 2001 From: Pablo Prietz Date: Fri, 9 Aug 2019 15:45:49 +0200 Subject: [PATCH] Revert easly glfwPollEvents() call Causes crash on Windows when minimizing the eye window, since `window_size` is set to `(0,0)` during glfw event handling. --- pupil_src/launchables/eye.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pupil_src/launchables/eye.py b/pupil_src/launchables/eye.py index 1fbd7d9e69..f3f82301b9 100644 --- a/pupil_src/launchables/eye.py +++ b/pupil_src/launchables/eye.py @@ -801,7 +801,6 @@ def window_should_update(): ) glViewport(0, 0, *camera_render_size) - glfw.glfwPollEvents() make_coord_system_pixel_based((f_height, f_width, 3), g_pool.flip) # render the ROI g_pool.u_r.draw(g_pool.gui.scale) @@ -825,6 +824,7 @@ def window_should_update(): # update screen glfw.glfwSwapBuffers(main_window) + glfw.glfwPollEvents() # END while running