mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
dca6e5e039
commit
7f81c3b073
1 changed files with 12 additions and 3 deletions
15
configure.ac
15
configure.ac
|
@ -815,14 +815,23 @@ fi
|
|||
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
|
||||
GL_INCLUDES="
|
||||
# include <GLES2/gl2.h>
|
||||
# include <GLES2/gl2ext.h>
|
||||
#ifndef GL_GLEXT_PROTOTYPES
|
||||
#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__
|
||||
# include <OpenGL/OpenGL.h>
|
||||
# include <OpenGL/gl.h>
|
||||
# include <OpenGL/glu.h>
|
||||
# else
|
||||
# include <GL/glu.h>
|
||||
# include <GL/gl.h>
|
||||
# include <GL/glu.h>
|
||||
# if __WIN32__ || _WIN32
|
||||
# include <GL/glext.h>
|
||||
# endif
|
||||
|
|
Loading…
Reference in a new issue