From 76e4374d0644edbde087896497aca4e1cf0906a0 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Thu, 19 Nov 2015 20:18:39 +1100 Subject: vo_opengl: fix ANGLE GLES3 mode Turns out glGetTexLevelParameter, which is missing in ANGLE, is a GLES3.1 function. Removing it from the list of core GLES3 functions makes ANGLE work in GLES3 mode. --- video/out/opengl/angle.c | 2 +- video/out/opengl/common.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/opengl/angle.c b/video/out/opengl/angle.c index 7aac2bd29d..a0d30e6df3 100644 --- a/video/out/opengl/angle.c +++ b/video/out/opengl/angle.c @@ -83,7 +83,7 @@ static bool create_context_egl(MPGLContext *ctx, EGLConfig config, struct priv *p = ctx->priv; EGLint context_attributes[] = { - EGL_CONTEXT_CLIENT_VERSION, 2, + EGL_CONTEXT_CLIENT_VERSION, 3, EGL_NONE }; diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 660b4b2717..e3e2af6e8b 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -175,12 +175,19 @@ static const struct gl_functions gl_functions[] = { DEF_FN(BlitFramebuffer), DEF_FN(GetStringi), // for ES 3.0 - DEF_FN(GetTexLevelParameteriv), DEF_FN(ReadBuffer), DEF_FN(UnmapBuffer), {0} }, }, + // For ES 3.1 core + { + .ver_es_core = 310, + .functions = (const struct gl_function[]) { + DEF_FN(GetTexLevelParameteriv), + {0} + }, + }, // Useful for ES 2.0 { .ver_core = 110, -- cgit v1.2.3