Make freeglut compile under Cygwin, which has an ancient GLX header
authorSven Panne <sven.panne@aedion.de>
Wed, 5 Nov 2008 18:05:36 +0000 (18:05 +0000)
committerSven Panne <sven.panne@aedion.de>
Wed, 5 Nov 2008 18:05:36 +0000 (18:05 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@750 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_internal.h

index 8330e9d..c48d79b 100644 (file)
 #    ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
 #        include <X11/extensions/xf86vmode.h>
 #    endif
+/* If GLX is too old, we will fail during runtime when multisampling
+   is requested, but at least freeglut compiles. */
+#    ifndef GLX_SAMPLE_BUFFERS
+#        define GLX_SAMPLE_BUFFERS 0x80A8
+#    endif
+#    ifndef GLX_SAMPLES
+#        define GLX_SAMPLES 0x80A9
+#    endif
 
 #endif