skaslev / gl3w

Simple OpenGL core profile loading
http://github.com/skaslev/gl3w
The Unlicense
705 stars 157 forks source link

Add FORWARD_COMPAT window hint to glfw_test.c #43

Closed tombsar closed 7 years ago

tombsar commented 7 years ago

MacOS will only provide OpenGL 3.2 contexts that are forward-compatible (all deprecated features removed). The addition of this hint should allow the example to run on MacOS, while slightly restricting the feature set on other systems.

An alternative solution would be surrounding the hint with preprocessor guards that limit its inclusion to MacOS.

Fixes #42