]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/binary_operators.glsl
Fold type conversions of constants
[libs/gl.git] / tests / glsl / binary_operators.glsl
index a99b4446f9e2a22efcd9a8615e10f88a9d955b97..edf36ebbee46ec833fd96ccc68a56c4fd5c34adc 100644 (file)
@@ -43,16 +43,16 @@ void main()
        b = b&&float(i)==f;
        int j = 1;
        i = i|1;
-       j = j<<(i%5);
+       j = j<<i%5;
        b = b||i!=j;
        ivec2 iv;
        i = i<<j;
-       iv = iv>>i;
+       iv = iv>>ivec2(i);
        mat4x2 m1;
        mat2x4 m2;
        vec4 v1 = vec4(1.0);
        vec2 v3;
-       v3 = v1*m2+(m2*m1*float(5)*v1).xy+vec2(iv);
+       v3 = v1*m2+(m2*m1*5.0*v1).xy+vec2(iv);
        if(b)
                ++v3;
 }