Skip to content

Commit

Permalink
Revert easly glfwPollEvents() call
Browse files Browse the repository at this point in the history
Causes crash on Windows when minimizing the eye window,
since `window_size` is set to `(0,0)` during glfw event handling.
  • Loading branch information
papr committed Aug 9, 2019
1 parent c0b89ac commit 86be0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pupil_src/launchables/eye.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -825,6 +824,7 @@ def window_should_update():

# update screen
glfw.glfwSwapBuffers(main_window)
glfw.glfwPollEvents()

# END while running

Expand Down

0 comments on commit 86be0a7

Please sign in to comment.