summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video_shaders.glsl
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-30 14:05:33 +0200
committerwm4 <wm4@nowhere>2013-05-30 15:40:55 +0200
commit5d0c4b6ac34911cbac27507b553f767c1a4ec2a5 (patch)
treee21d5ffb0366647c9f8afaf1e5c6b7441f21d4f8 /video/out/gl_video_shaders.glsl
parente08bf272ee100911001530aa605b8cf6b381c47e (diff)
downloadmpv-5d0c4b6ac34911cbac27507b553f767c1a4ec2a5.tar.bz2
mpv-5d0c4b6ac34911cbac27507b553f767c1a4ec2a5.tar.xz
gl_video: change a GLSL statement
This might be better with dumb shader compilers, which won't vectorize this to a single vector-division, assuming the hardware does have such an instruction. Affects "bicubic_fast" scale mode only.
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r--video/out/gl_video_shaders.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl
index 5d77d0c38f..53524e6cbb 100644
--- a/video/out/gl_video_shaders.glsl
+++ b/video/out/gl_video_shaders.glsl
@@ -150,7 +150,7 @@ vec4 calcweights(float s) {
vec4 t = vec4(-0.5, 0.1666, 0.3333, -0.3333) * s + vec4(1, 0, -0.5, 0.5);
t = t * s + vec4(0, 0, -0.5, 0.5);
t = t * s + vec4(-0.6666, 0, 0.8333, 0.1666);
- vec2 a = vec2(1 / t.z, 1 / t.w);
+ vec2 a = vec2(1, 1) / vec2(t.z, t.w);
t.xy = t.xy * a + vec2(1, 1);
t.x = t.x + s;
t.y = t.y - s;