diff options
| author | Ray <raysan5@gmail.com> | 2016-05-17 00:10:28 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-05-17 00:10:28 +0200 |
| commit | d84f922372622276caab0764ae209decc39a8bdb (patch) | |
| tree | 66ae60eb7034a732506fe9034f9feb91800f652c /src | |
| parent | e060944b34f11978392f5c24282c95781caae63e (diff) | |
| parent | f575935ace109149277a57f6216c5df1b94eeac9 (diff) | |
| download | raylib-d84f922372622276caab0764ae209decc39a8bdb.tar.gz raylib-d84f922372622276caab0764ae209decc39a8bdb.zip | |
Merge pull request #114 from cHemingway/osx-fixes
Fix building examples on OSX
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |
