mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-11 11:03:23 +08:00
GLFW hint GLFW_OPENGL_FORWARD_COMPAT is must on osx to create glfw
window successfully
This commit is contained in:
@@ -36,7 +36,10 @@ int main()
|
||||
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); // uncomment this statement to fix compilation on OS X
|
||||
|
||||
#ifdef __APPLE__
|
||||
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // uncomment this statement to fix compilation on OS X
|
||||
#endif
|
||||
|
||||
// glfw window creation
|
||||
// --------------------
|
||||
|
||||
Reference in New Issue
Block a user