mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Misc: Workaround for some missing definitions
- Add workarounds for missing GL_TEXTURE_RECTANGLE and PictOpDifference definitions in broken GL headers / old X Composite headers.
This commit is contained in:
parent
dfd4dd1122
commit
6ef23e066f
1 changed files with 13 additions and 0 deletions
13
src/common.h
13
src/common.h
|
@ -76,6 +76,12 @@
|
||||||
#include <X11/extensions/Xrandr.h>
|
#include <X11/extensions/Xrandr.h>
|
||||||
#include <X11/extensions/Xdbe.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
|
// libconfig
|
||||||
#ifdef CONFIG_LIBCONFIG
|
#ifdef CONFIG_LIBCONFIG
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
@ -94,6 +100,13 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <GL/glx.h>
|
#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
|
#endif
|
||||||
|
|
||||||
// === Macros ===
|
// === Macros ===
|
||||||
|
|
Loading…
Reference in a new issue