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.
This commit is contained in:
James Ross-Gowan
2015-11-19 20:18:39 +11:00
parent 7e285a6f71
commit 76e4374d06
2 changed files with 9 additions and 2 deletions

View File

@@ -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
};

View File

@@ -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,