skaslev / gl3w

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

gl3wInit returns 0 (false) when it fails #24

Closed dpuyosa closed 9 years ago

dpuyosa commented 9 years ago

To match the logic that gl3wInit() works and the one used with gl3wIsSupported. (gl3wInit) worked, OK (!gl3wInit) NO gl3wInit When it fails we get it with if( !gl3wInit() ). if NOT gl3Init(ialized) then do X

The same logic is used in gl3wIsSupported. if( !gl2wIsSupported(5,5) then X if NOT gl3wIsSupported then do X

For the moment I dont know if this change breaks something and since there is no error code it seems clearer to me.