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>
This commit is contained in:
1 parent
a23acf14f1
commit
31d7b4d596
1 file changed
+5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user