aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Reisenauer <kd7tck@msn.com>2016-05-16 19:54:03 -0700
committerJoshua Reisenauer <kd7tck@msn.com>2016-05-16 19:54:03 -0700
commitcd7f25830bcf1f1bdc2efcde8ec70759b8eac3fc (patch)
tree1b93a694de0babedbf23f884e75a098eca210c52 /src
parent706755d1464bd65623755c6c2b4df931a37e9eb5 (diff)
parent0e29aa2951fe11e9d0fabec2182ed6309fce37bb (diff)
downloadraylib-cd7f25830bcf1f1bdc2efcde8ec70759b8eac3fc.tar.gz
raylib-cd7f25830bcf1f1bdc2efcde8ec70759b8eac3fc.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src')
-rw-r--r--src/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 54d42f83..a94ad48d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1447,7 +1447,11 @@ static void InitDisplay(int width, int height)
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); // Choose OpenGL minor version (just hint)
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // Profiles Hint: Only 3.3 and above!
// Other values: GLFW_OPENGL_ANY_PROFILE, GLFW_OPENGL_COMPAT_PROFILE
+#ifdef __APPLE__
+ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // OSX Requires
+#else
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_FALSE); // Fordward Compatibility Hint: Only 3.3 and above!
+#endif
//glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE);
}