diff options
author | Richard Grenville <pyxlcy@gmail.com> | 2013-04-03 10:51:37 +0800 |
---|---|---|
committer | Richard Grenville <pyxlcy@gmail.com> | 2013-04-03 10:53:04 +0800 |
commit | ab53e73ce77aa44458de55f62abf6273ac44d540 (patch) | |
tree | b6da64b6c2c74b69a5e59cc4d3a47eca5cec98d6 | |
parent | 3ad3ebae953c22ce4c3145431351a3192b2c70a4 (diff) | |
download | tdebase-ab53e73ce77aa44458de55f62abf6273ac44d540.tar.gz tdebase-ab53e73ce77aa44458de55f62abf6273ac44d540.zip |
Misc: Workaround for some missing definitions
- Add workarounds for missing GL_TEXTURE_RECTANGLE and PictOpDifference
definitions in broken GL headers / old X Composite headers.
-rw-r--r-- | common.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -76,6 +76,12 @@ #include <X11/extensions/Xrandr.h> #include <X11/extensions/Xdbe.h> +// Workarounds for missing definitions in very old versions of X headers, +// thanks to consolers for reporting +#ifndef PictOpDifference +#define PictOpDifference 0x39 +#endif + // libconfig #ifdef CONFIG_LIBCONFIG #include <libgen.h> @@ -94,6 +100,13 @@ #endif #include <GL/glx.h> + +// Workarounds for missing definitions in some broken GL drivers, thanks to +// douglasp and consolers for reporting +#ifndef GL_TEXTURE_RECTANGLE +#define GL_TEXTURE_RECTANGLE 0x84F5 +#endif + #endif // === Macros === |