Browse Source

work around broken system glx.h

David Rose 21 years ago
parent
commit
b9d9739fd5
1 changed files with 10 additions and 0 deletions
  1. 10 0
      panda/src/glxdisplay/glxext.h

+ 10 - 0
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