From 5d0c4b6ac34911cbac27507b553f767c1a4ec2a5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 30 May 2013 14:05:33 +0200 Subject: 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. --- video/out/gl_video_shaders.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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; -- cgit v1.2.3