X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fbinary_operators.glsl;h=0782b15a0a1bad76ed1aae2a5e2d029d20c4234f;hb=a4cd67f1c9f1f375bacacfbb421d40f78a22644b;hp=8e2520c83c7b9458584b6d92f1da51c0d2264ad2;hpb=f639d088c478fe5d266f9f5779928735b5176976;p=libs%2Fgl.git diff --git a/tests/glsl/binary_operators.glsl b/tests/glsl/binary_operators.glsl index 8e2520c8..0782b15a 100644 --- a/tests/glsl/binary_operators.glsl +++ b/tests/glsl/binary_operators.glsl @@ -14,6 +14,10 @@ void main() j = j<<(i%5); b = b || i!=j; + ivec2 iv; + i = i<>i; + mat4x2 m1; mat2x4 m2; mat4 m3 = m2*m1*5; @@ -21,7 +25,7 @@ void main() vec4 v2; v2 = m3*v1; vec2 v3; - v3 = v1*m2+v2.xy; + v3 = v1*m2+v2.xy+iv; if(b) ++v3; @@ -39,13 +43,16 @@ void main() b = b&&float(i)==f; int j = 1; i = i|1; - j = j<<(i%5); + j = j<>i; mat4x2 m1; mat2x4 m2; vec4 v1 = vec4(1.0); vec2 v3; - v3 = v1*m2+(m2*m1*float(5)*v1).xy; + v3 = v1*m2+(m2*m1*float(5)*v1).xy+vec2(iv); if(b) ++v3; }