]> git.mxchange.org Git - simgear.git/commitdiff
Fix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX
authorehofman <ehofman>
Sun, 31 Jul 2005 08:46:37 +0000 (08:46 +0000)
committerehofman <ehofman>
Sun, 31 Jul 2005 08:46:37 +0000 (08:46 +0000)
simgear/screen/extensions.hxx

index cf633c1144421b7a8ac43236467990fff2dcb94a..1391a6a821a76ed8285f190cbbcffaae94949448 100644 (file)
@@ -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);