Fixed a very strange bug resulting in an infinite GLFW message loop.