respect old versions of glx.h a little better

This commit is contained in:
David Rose 2004-08-05 16:54:08 +00:00
parent e08d134dba
commit 9766fe68c3
2 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,6 @@ typedef int XIC;
#if !defined(HAVE_GLXFBCONFIG) && defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer) #if !defined(HAVE_GLXFBCONFIG) && defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer)
// If the system glx version isn't 1.3, but these were defined as // If the system glx version isn't 1.3, but these were defined as
// extensions, we can work with that. // extensions, we can work with that.
#define GLX_RGBA_TYPE GLX_RGBA_TYPE_SGIX
#define GLXFBConfig GLXFBConfigSGIX #define GLXFBConfig GLXFBConfigSGIX
#define GLXPbuffer GLXPbufferSGIX #define GLXPbuffer GLXPbufferSGIX
#define glXChooseFBConfig glXChooseFBConfigSGIX #define glXChooseFBConfig glXChooseFBConfigSGIX

View File

@ -332,6 +332,7 @@ typedef struct {
the following to compile. */ the following to compile. */
typedef struct __GLXFBConfigRec *GLXFBConfig; typedef struct __GLXFBConfigRec *GLXFBConfig;
typedef XID GLXPbuffer; typedef XID GLXPbuffer;
typedef XID GLXWindow;
#ifdef GLX_GLXEXT_PROTOTYPES #ifdef GLX_GLXEXT_PROTOTYPES
extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *); extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);