Skip to content

Commit

Permalink
demos/glfw: set GLFW_OPENGL_FORWARD_COMPAT for macOS
Browse files Browse the repository at this point in the history
Fix regression from 49f413b.
  • Loading branch information
quink-black authored and haasn committed Apr 25, 2022
1 parent 1f8f105 commit 91391f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/window_glfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ static struct window *glfw_create(pl_log log, const struct window_params *params
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, gl_vers[i].major);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, gl_vers[i].minor);
glfwWindowHint(GLFW_OPENGL_PROFILE, gl_vers[i].profile);
#ifdef __APPLE__
if (gl_vers[i].profile == GLFW_OPENGL_CORE_PROFILE)
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
#endif

#endif // USE_GL

Expand Down

0 comments on commit 91391f1

Please sign in to comment.