Migrated from GLFW2 to GLFW3.