The freeglut header only defines the extensions to request an OpenGL core profile context if freeglut.h (rather than glut.h) is included.
Note that the header is installed to include/GL/freeglut.h on OS X, too. Signed-off-by: Fabian Bieler <fabianbie...@fastmail.fm> --- src/util/glut_wrap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/glut_wrap.h b/src/util/glut_wrap.h index a48a9e8..fa1b8f9 100644 --- a/src/util/glut_wrap.h +++ b/src/util/glut_wrap.h @@ -1,7 +1,9 @@ #ifndef GLUT_WRAP_H #define GLUT_WRAP_H -#ifdef __APPLE__ +#ifdef HAVE_FREEGLUT +# include <GL/freeglut.h> +#elif defined __APPLE__ # include <GLUT/glut.h> #else # include <GL/glut.h> -- 1.8.3.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev