From 178c49a4306b2e9b13989017022ee191acb111dc Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 31 Jul 2005 08:46:37 +0000 Subject: [PATCH] Fix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX --- simgear/screen/extensions.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/simgear/screen/extensions.hxx b/simgear/screen/extensions.hxx index cf633c11..1391a6a8 100644 --- a/simgear/screen/extensions.hxx +++ b/simgear/screen/extensions.hxx @@ -429,10 +429,14 @@ typedef BOOL (APIENTRY * wglSetPbufferAttribARBProc) (HPBUFFERARB hPbuffer, cons #endif #ifndef GLXPbuffer -#define GLXPbuffer GLXPbufferSGIX +# ifdef GLXPbufferSGIX +# define GLXPbuffer GLXPbufferSGIX +# endif #endif #ifndef GLXFBConfig -#define GLXFBConfig GLXFBConfigSGIX +# ifdef GLXFBConfigSGIX +# define GLXFBConfig GLXFBConfigSGIX +# endif #endif typedef GLXFBConfig *(*glXChooseFBConfigProc) (Display *dpy, int screen, int *attribList, int *nitems); -- 2.39.5