summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-08-19 23:15:43 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2013-08-19 23:15:43 +0200
commit31d7b4d5964ef501eddf5ca6ae64a1275284433e (patch)
treeae9bddfc3434d119750fb60deb41a26714ac3a64 /src
parenta23acf14f14c169e747c8d144d773aaa02815fc3 (diff)
uterm: drm3d: fix GL_UNPACK_ROW_LENGTH(_EXT) macro
Khronos "fixed" their new OpenGLES2 headers and added a bunch of _EXT suffixes. Now we need to test for both, the old and new macros, yay! Thanks to Yichao Yu for spotting that. Reported-by: Yichao Yu <yyc1992@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/uterm_drm3d_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uterm_drm3d_internal.h b/src/uterm_drm3d_internal.h
index 49fcd7e..9a0e4ca 100644
--- a/src/uterm_drm3d_internal.h
+++ b/src/uterm_drm3d_internal.h
@@ -47,6 +47,11 @@
#include <xf86drmMode.h>
#include "uterm_video.h"
+/* 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 uterm_drm3d_rb {
struct uterm_display *disp;
struct gbm_bo *bo;