Detect broken glext.h headers.
This commit is contained in:
parent
0e2d0e076f
commit
1434d875ea
10
configure.in
10
configure.in
|
@ -262,6 +262,16 @@ then
|
|||
|
||||
if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
|
||||
then
|
||||
AC_CACHE_CHECK("for OpenGL extension functions prototypes", wine_cv_extension_prototypes,
|
||||
AC_TRY_COMPILE([#include <GL/gl.h>
|
||||
#include <GL/glext.h>],
|
||||
[PFNGLCOLORTABLEEXTPROC test_proc;],
|
||||
[AC_DEFINE(HAVE_GLEXT_PROTOTYPES)
|
||||
wine_cv_extension_prototypes="yes"],
|
||||
[wine_cv_extension_prototypes="no"]
|
||||
)
|
||||
)
|
||||
|
||||
AC_DEFINE(HAVE_OPENGL)
|
||||
OPENGL32_DLL=opengl32
|
||||
OPENGLFILES='$(OPENGLFILES)'
|
||||
|
|
|
@ -30,6 +30,13 @@ ICOM_VTABLE(IDirect3DDevice) OpenGL_vtable_dx3;
|
|||
#define D3DDPRIVATE(x) mesa_d3dd_private *odev=((mesa_d3dd_private*)x->private)
|
||||
#define DDPRIVATE(x) x11_dd_private *ddpriv=((x11_dd_private*)(x)->d->private)
|
||||
|
||||
#ifndef HAVE_GLEXT_PROTOTYPES
|
||||
/* This is for non-OpenGL ABI compliant glext.h headers :-) */
|
||||
typedef void (* PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat,
|
||||
GLsizei width, GLenum format, GLenum type,
|
||||
const GLvoid *table);
|
||||
#endif
|
||||
|
||||
static const float id_mat[16] = {
|
||||
1.0, 0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0, 0.0,
|
||||
|
|
|
@ -107,3 +107,6 @@
|
|||
|
||||
/* Define if the OpenGL library supports the glXGetProcAddressARB call */
|
||||
#undef HAVE_GLX_GETPROCADDRESS
|
||||
|
||||
/* Define if the OpenGL headers define extension typedefs */
|
||||
#undef HAVE_GLEXT_PROTOTYPES
|
||||
|
|
|
@ -143,6 +143,9 @@
|
|||
/* Define if the OpenGL library supports the glXGetProcAddressARB call */
|
||||
#undef HAVE_GLX_GETPROCADDRESS
|
||||
|
||||
/* Define if the OpenGL headers define extension typedefs */
|
||||
#undef HAVE_GLEXT_PROTOTYPES
|
||||
|
||||
/* The number of bytes in a long long. */
|
||||
#undef SIZEOF_LONG_LONG
|
||||
|
||||
|
|
Loading…
Reference in New Issue