From 6ef23e066fe008d21309955d6f5be66af48ddd65 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Wed, 3 Apr 2013 10:51:37 +0800 Subject: [PATCH] Misc: Workaround for some missing definitions - Add workarounds for missing GL_TEXTURE_RECTANGLE and PictOpDifference definitions in broken GL headers / old X Composite headers. --- src/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/common.h b/src/common.h index a3435d43..2f5b831d 100644 --- a/src/common.h +++ b/src/common.h @@ -76,6 +76,12 @@ #include #include +// 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 @@ -94,6 +100,13 @@ #endif #include + +// 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 ===