From b9d9739fd53effe04770c8c58ae10ee06324e888 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 1 Feb 2005 20:28:42 +0000 Subject: [PATCH] work around broken system glx.h --- panda/src/glxdisplay/glxext.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/panda/src/glxdisplay/glxext.h b/panda/src/glxdisplay/glxext.h index 192227a3c4..c246eff813 100644 --- a/panda/src/glxdisplay/glxext.h +++ b/panda/src/glxdisplay/glxext.h @@ -120,6 +120,16 @@ extern "C" { #define GLX_SAMPLES 100001 #endif +/* drose: the version of GL/glx.h that ships with Fedora Core 2 seems + to define GLX_VERSION_1_4, but for some reason does not define + GLX_SAMPLE_BUFFERS or GLX_SAMPLES. We work around that here. */ +#ifndef GLX_SAMPLE_BUFFERS +#define GLX_SAMPLE_BUFFERS 100000 +#endif +#ifndef GLX_SAMPLES +#define GLX_SAMPLES 100001 +#endif + #ifndef GLX_ARB_get_proc_address #endif