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.
This commit is contained in:
wm4 2013-05-30 14:05:33 +02:00
parent e08bf272ee
commit 5d0c4b6ac3
1 changed files with 1 additions and 1 deletions

View File

@ -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;