summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorBin Jin <bjin1990@gmail.com>2015-12-02 00:28:26 +0000
committerwm4 <wm4@nowhere>2015-12-02 12:32:02 +0100
commit42a0f4d87b601e1a3c797c31043d3ca777881974 (patch)
tree8396475463a5f3dfbcf8a417544bcd43e14a7ec0 /video/out/opengl/common.c
parent69cc002c9294a2982dc3753a9602c10d34c1020b (diff)
downloadmpv-42a0f4d87b601e1a3c797c31043d3ca777881974.tar.bz2
mpv-42a0f4d87b601e1a3c797c31043d3ca777881974.tar.xz
vo_opengl: enable NNEDI3 prescaler on OpenGL ES 3.0
It turns out that both UBO and intBitsToFloat() are supported in OpenGL ES 3.0[1][2], enable them so that NNEDI3 prescaler can be used in a wider range of backends. Also fixes some implicit int-to-float conversions so that the shader actually compiles on GLES. Tested on Linux desktop (nvidia 358.16) with "es" sub-option. [1]: https://www.khronos.org/opengles/sdk/docs/man3/html/glGetUniformBlockIndex.xhtml [2]: https://www.khronos.org/opengles/sdk/docs/manglsl/docbook4/xhtml/intBitsToFloat.xml
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index ae4384ec30..a93ecf9d0b 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -326,6 +326,7 @@ static const struct gl_functions gl_functions[] = {
// uniform buffer object extensions, requires OpenGL 3.1.
{
.ver_core = 310,
+ .ver_es_core = 300,
.extension = "GL_ARB_uniform_buffer_object",
.functions = (const struct gl_function[]) {
DEF_FN(GetUniformBlockIndex),