summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-11-19 20:18:39 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2015-11-19 20:37:30 +1100
commit76e4374d0644edbde087896497aca4e1cf0906a0 (patch)
tree2a586a9d2298d4a4e834caa1f3dc1fb7de925ffc /video/out/opengl/common.c
parent7e285a6f718a84b06994a4c0196a7469058eb241 (diff)
downloadmpv-76e4374d0644edbde087896497aca4e1cf0906a0.tar.bz2
mpv-76e4374d0644edbde087896497aca4e1cf0906a0.tar.xz
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.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c9
1 files changed, 8 insertions, 1 deletions
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,