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