tested with GLFW3 on Windows