From 20f10e0235dc9cea63a62713da2c503c5ec69077 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 16 Sep 2014 17:17:51 +0200 Subject: [PATCH] Revert "Remove glewexperimental flag" This reverts commit 7516dc920a8702466ed2f836ea6425b87b41bdec. --- src/graphics/glwrap.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/graphics/glwrap.cpp b/src/graphics/glwrap.cpp index 4219f8ee4..e74dca929 100644 --- a/src/graphics/glwrap.cpp +++ b/src/graphics/glwrap.cpp @@ -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 \ No newline at end of file