Revert "Remove glewexperimental flag"

This reverts commit 7516dc920a.
This commit is contained in:
Vincent Lejeune 2014-09-16 17:17:51 +02:00
parent 7516dc920a
commit 20f10e0235

View File

@ -105,6 +105,10 @@ void initGL()
if (is_gl_init)
return;
is_gl_init = true;
// For Mesa extension reporting
#ifdef __linux__
glewExperimental = GL_TRUE;
#endif
GLenum err = glewInit();
if (GLEW_OK != err)
Log::fatal("GLEW", "Glew initialisation failed with error %s", glewGetErrorString(err));
@ -758,4 +762,4 @@ const std::string getGLExtensions()
}
return result;
} // getGLExtensions
} // getGLExtensions