diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-08-19 23:29:53 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-08-19 23:30:54 +0200 |
commit | c4193b81d79db7dd6055115049aca4044645af00 (patch) | |
tree | fd29edf88b6d4e41d2703dc99a505f37f25cd2b1 /src | |
parent | 31d7b4d5964ef501eddf5ca6ae64a1275284433e (diff) |
gltex: fix GL_UNPACK_ROW_LENGTH(_EXT) update
Khronos updated their GLES2 headers and broke backwards compatibility,
hurray. Fix it for real now.
Reported-by: Yichao Yu <yyc1992@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/text_gltex.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/text_gltex.c b/src/text_gltex.c index e767096..9c0b06b 100644 --- a/src/text_gltex.c +++ b/src/text_gltex.c @@ -55,6 +55,11 @@ #define LOG_SUBSYSTEM "text_gltex" +/* thanks khronos for breaking backwards compatibility.. */ +#if !defined(GL_UNPACK_ROW_LENGTH) && defined(GL_UNPACK_ROW_LENGTH_EXT) +# define GL_UNPACK_ROW_LENGTH GL_UNPACK_ROW_LENGTH_EXT +#endif + struct atlas { struct shl_dlist list; |