gltex: fix GL_UNPACK_ROW_LENGTH(_EXT) update
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 19 Aug 2013 21:29:53 +0000 (23:29 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 19 Aug 2013 21:30:54 +0000 (23:30 +0200)
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>
src/text_gltex.c

index e767096..9c0b06b 100644 (file)
 
 #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;