mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
configure: Use the same #includes for checking GL types as later in the code
This commit is contained in:
parent
8b3a5907d5
commit
53f06e44b7
1 changed files with 12 additions and 3 deletions
15
configure.ac
15
configure.ac
|
@ -1225,8 +1225,16 @@ dnl Check for some types that are not always present
|
||||||
GL_INCLUDES=""
|
GL_INCLUDES=""
|
||||||
if test "x$USE_GLES2" = "xyes"; then
|
if test "x$USE_GLES2" = "xyes"; then
|
||||||
GL_INCLUDES="$GL_INCLUDES
|
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
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1235,9 +1243,10 @@ if test "x$USE_OPENGL" = "xyes"; then
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in a new issue