Merge pull request #665 from upiter/patch-1
Fix `Error 65543: NSGL` on macOS
This commit is contained in:
commit
aeb1826913
|
@ -410,6 +410,7 @@ int main(int argc, char *argv[])
|
|||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
|
||||
win = glfwCreateWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "Demo", NULL, NULL);
|
||||
glfwMakeContextCurrent(win);
|
||||
glfwSetWindowUserPointer(win, &ctx);
|
||||
|
|
Loading…
Reference in New Issue