X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=c48d79b48e393fa1a6723b09003df3053aed31eb;hb=10c1830e04ac61fd26c5d51de6b54647734ec797;hp=8330e9d0b25d772e4dcc34cf6350ab052991f131;hpb=9e31ffd2f4fe1e5093876e56a0da3db3f66acdfb;p=freeglut 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