Skip to main content
2 of 2
Improved formatting, spelling and readability.
Nero
  • 1.3k
  • 3
  • 15
  • 31

How to set the GLFW OpenGL target?

I'm programming on a Mac and I'm learning OpenGL in the library GLFW.

My problem is that my Mac supports OpenGL up to version 4.1, but when I try to compile the shaders with version 410 it says ERROR: 0:1: '' : version '410' is not supported.

How do I set the version that GLFW should use?