diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-08-07 12:05:08 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-08-07 12:05:08 -0700 |
commit | 59758a8a9e732dfda83b87fb0082af3c924d3530 (patch) | |
tree | 3afcf7b5cd3ae0f98b0a4075530e140314bb868b /src/weston-egl-ext.h | |
parent | 4722939d181ca15a8b16632a178ded202f2faf37 (diff) |
Add workaround for broken GL_EXT_unpack_subimage tokens
Earlier versions of gl2ext.h defined the GL_EXT_unpack_subimage tokens
without the _EXT suffix. That's been fixed and we're using the _EXT
tokens now, but just in case we're using an older, broken header, define
the _EXT tokens manually.
Diffstat (limited to 'src/weston-egl-ext.h')
-rw-r--r-- | src/weston-egl-ext.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/weston-egl-ext.h b/src/weston-egl-ext.h index fe023683..6aa49fd8 100644 --- a/src/weston-egl-ext.h +++ b/src/weston-egl-ext.h @@ -62,4 +62,15 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st #define EGL_BUFFER_AGE_EXT 0x313D #endif +/* Mesas gl2ext.h and probably Khronos upstream defined + * GL_EXT_unpack_subimage with non _EXT suffixed GL_UNPACK_* tokens. + * In case we're using that mess, manually define the _EXT versions + * of the tokens here.*/ +#if defined(GL_EXT_unpack_subimage) && !defined(GL_UNPACK_ROW_LENGTH_EXT) +#define GL_UNPACK_ROW_LENGTH_EXT 0x0CF2 +#define GL_UNPACK_SKIP_ROWS_EXT 0x0CF3 +#define GL_UNPACK_SKIP_PIXELS_EXT 0x0CF4 +#endif + + #endif |