Eased restrictions on OpenGL/MESA usage a bit. It compiles just fine
using mesa-3.2 even without glext.h.
This commit is contained in:
parent
773efce76b
commit
22a969ba7e
|
@ -234,7 +234,7 @@ then
|
||||||
if test $OPENGL = "yes" -o $OPENGL = "normal"
|
if test $OPENGL = "yes" -o $OPENGL = "normal"
|
||||||
then
|
then
|
||||||
AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
|
AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
|
||||||
if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" -a "$ac_cv_header_GL_glext_h" = "yes"
|
if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
|
||||||
then
|
then
|
||||||
dnl Check for some problems due to old Mesa versions
|
dnl Check for some problems due to old Mesa versions
|
||||||
AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
|
AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
|
||||||
|
@ -266,6 +266,9 @@ then
|
||||||
,,
|
,,
|
||||||
$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
|
$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
|
||||||
|
|
||||||
|
|
||||||
|
OPENGLFILES='$(OPENGLFILES)'
|
||||||
|
|
||||||
if test $ac_cv_lib_GL_glXCreateContext = "yes"
|
if test $ac_cv_lib_GL_glXCreateContext = "yes"
|
||||||
then
|
then
|
||||||
AC_CHECK_LIB(GL,glXGetProcAddressARB,AC_DEFINE(HAVE_GLX_GETPROCADDRESS),,$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
|
AC_CHECK_LIB(GL,glXGetProcAddressARB,AC_DEFINE(HAVE_GLX_GETPROCADDRESS),,$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
|
||||||
|
@ -287,7 +290,6 @@ then
|
||||||
|
|
||||||
AC_DEFINE(HAVE_OPENGL)
|
AC_DEFINE(HAVE_OPENGL)
|
||||||
OPENGL32_DLL=opengl32
|
OPENGL32_DLL=opengl32
|
||||||
OPENGLFILES='$(OPENGLFILES)'
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -24,7 +24,9 @@
|
||||||
#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
|
#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
|
#ifdef HAVE_GL_GLEXT_H
|
||||||
# include <GL/glext.h>
|
# include <GL/glext.h>
|
||||||
|
#endif
|
||||||
#undef XMD_H
|
#undef XMD_H
|
||||||
|
|
||||||
#undef APIENTRY
|
#undef APIENTRY
|
||||||
|
|
Loading…
Reference in New Issue