From 30adf280fdb439f4350ec5ed33500d23635af881 Mon Sep 17 00:00:00 2001 From: Floens Date: Mon, 20 Jun 2016 16:53:25 +0200 Subject: vo_opengl: GL_ARB_timer_query compile fix for GLES The GL_ARB_timer_query extension and thus the GL_TIME_ELAPSED constant don't exist for GLES. For ES the EXT_disjoint_timer_query is used so take the constant from that else provide the constant manually. See pr #3216 which introduced this error. --- video/out/opengl/header_fixes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/video/out/opengl/header_fixes.h b/video/out/opengl/header_fixes.h index 964b33a3fa..048165f7fd 100644 --- a/video/out/opengl/header_fixes.h +++ b/video/out/opengl/header_fixes.h @@ -88,6 +88,12 @@ #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB #endif +// GL_ARB_timer_query and EXT_disjoint_timer_query +#ifndef GL_TIME_ELAPSED +// Same as GL_TIME_ELAPSED_EXT +#define GL_TIME_ELAPSED 0x88BF +#endif + // GL_OES_EGL_image_external, GL_NV_EGL_stream_consumer_external #ifndef GL_TEXTURE_EXTERNAL_OES #define GL_TEXTURE_EXTERNAL_OES 0x8D65 -- cgit v1.2.3