diff options
author | wm4 <wm4@nowhere> | 2016-05-16 12:10:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-16 12:10:47 +0200 |
commit | 51603e472df2b5570a93845dccec18f35d570398 (patch) | |
tree | 6cb340191cd7b50b4a5761578608f5a8691fa5f5 /video | |
parent | e047cc0931a22d277d7ccd14588f905d7852f7e0 (diff) | |
download | mpv-51603e472df2b5570a93845dccec18f35d570398.tar.bz2 mpv-51603e472df2b5570a93845dccec18f35d570398.tar.xz |
vo_opengl: fix bicubic_fast in ES mode
GLES shaders disallow implicit conversion from int to float.
This has been broken for quite a while.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video_shaders.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video_shaders.c b/video/out/opengl/video_shaders.c index 237e1f39d2..1999172ee7 100644 --- a/video/out/opengl/video_shaders.c +++ b/video/out/opengl/video_shaders.c @@ -177,7 +177,7 @@ static void bicubic_calcweights(struct gl_shader_cache *sc, const char *t, const GLSLF("%s = %s * %s + vec4(0, 0, -0.5, 0.5);\n", t, t, s); GLSLF("%s = %s * %s + vec4(-0.6666, 0, 0.8333, 0.1666);\n", t, t, s); GLSLF("%s.xy *= vec2(1, 1) / vec2(%s.z, %s.w);\n", t, t, t); - GLSLF("%s.xy += vec2(1 + %s, 1 - %s);\n", t, s, s); + GLSLF("%s.xy += vec2(1.0 + %s, 1.0 - %s);\n", t, s, s); } void pass_sample_bicubic_fast(struct gl_shader_cache *sc) |