GLFW hint GLFW_OPENGL_FORWARD_COMPAT is must on osx to create glfw

window successfully
This commit is contained in:
Shivpratap Chauhan
2017-07-12 17:06:00 +05:30
parent 95598f250a
commit 2d16ef0fe2
74 changed files with 296 additions and 74 deletions

View File

@@ -42,7 +42,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
// --------------------