From: Sven Panne Date: Wed, 5 Nov 2008 18:05:36 +0000 (+0000) Subject: Make freeglut compile under Cygwin, which has an ancient GLX header X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=e7e6f1d6b102159c3611a361700ce3d369772939;p=freeglut Make freeglut compile under Cygwin, which has an ancient GLX header git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@750 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 8330e9d..c48d79b 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -101,6 +101,14 @@ # ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H # include # 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