Do not set glewExperimental outside of linux

This commit is contained in:
Vincent Lejeune 2014-09-13 02:02:05 +02:00
parent 349a64ae8d
commit 1d913ad5b4

View File

@ -104,7 +104,10 @@ void initGL()
if (is_gl_init)
return;
is_gl_init = true;
// For Mesa extension reporting
#ifdef UNIX
glewExperimental = GL_TRUE;
#endif
GLenum err = glewInit();
if (GLEW_OK != err)
Log::fatal("GLEW", "Glew initialisation failed with error %s", glewGetErrorString(err));