Modified for Antic_Graph's change to GLFW.