configure: Use the same includes for GL that we would use later in the code for checking if GLES2 and OpenGL headers can both be included

This commit is contained in:
Sebastian Dröge 2014-05-05 12:30:32 +02:00
parent dca6e5e039
commit 7f81c3b073

View file

@ -815,14 +815,23 @@ fi
dnl check if we can include both GL and GLES2 at the same time dnl check if we can include both GL and GLES2 at the same time
if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then
GL_INCLUDES=" GL_INCLUDES="
# include <GLES2/gl2.h> #ifndef GL_GLEXT_PROTOTYPES
# include <GLES2/gl2ext.h> #define GL_GLEXT_PROTOTYPES 1
#endif
# ifdef __APPLE__
# include <OpenGLES/ES2/gl.h>
# include <OpenGLES/ES2/glext.h>
# else
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>
# endif
# if __APPLE__ # if __APPLE__
# include <OpenGL/OpenGL.h> # include <OpenGL/OpenGL.h>
# include <OpenGL/gl.h> # include <OpenGL/gl.h>
# include <OpenGL/glu.h>
# else # else
# include <GL/glu.h>
# include <GL/gl.h> # include <GL/gl.h>
# include <GL/glu.h>
# if __WIN32__ || _WIN32 # if __WIN32__ || _WIN32
# include <GL/glext.h> # include <GL/glext.h>
# endif # endif