fix #1 bug: glfwWindowHint throw exception