summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-12 20:42:12 +0200
committerwm4 <wm4@nowhere>2016-05-12 21:22:28 +0200
commitbd41a3ab62eac1ed826a7075aa8bb21486d9dcd2 (patch)
tree798f23a19a0b24aed101afdffc8cb7cf42f03208
parent84ccebd9b9fba47f1e08bbc263b87174a133ea01 (diff)
downloadmpv-bd41a3ab62eac1ed826a7075aa8bb21486d9dcd2.tar.bz2
mpv-bd41a3ab62eac1ed826a7075aa8bb21486d9dcd2.tar.xz
vo_opengl: add detection for the ES texture_rg extension
-rw-r--r--video/out/opengl/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index c181a8ed13..7df667f08c 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -228,6 +228,12 @@ static const struct gl_functions gl_functions[] = {
.extension = "GL_ARB_texture_rg",
.provides = MPGL_CAP_TEX_RG,
},
+ {
+ .ver_core = 300,
+ .ver_es_core = 300,
+ .extension = "GL_EXT_texture_rg",
+ .provides = MPGL_CAP_TEX_RG,
+ },
// GL_R16 etc.
{
.extension = "GL_EXT_texture_norm16",