]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/binary_operators.glsl
Properly resolve arithmetic assignment operators
[libs/gl.git] / tests / glsl / binary_operators.glsl
index 06c367f24f71a745b0abab27e62bf0cc909f97f5..8e2520c83c7b9458584b6d92f1da51c0d2264ad2 100644 (file)
@@ -4,6 +4,7 @@ void main()
        int i = 0;
        i = i-3;
        float f = 0;
+       f = i+1;
        f = (f+i)*(f/i);
        bool b = i<f || i>=f;
        b = b && i==f;
@@ -31,7 +32,8 @@ void main()
 {
        int i = 0;
        i = i-3;
-       float f = float(0);
+       float f;
+       f = float(i+1);
        f = (f+float(i))*(f/float(i));
        bool b = float(i)<f||float(i)>=f;
        b = b&&float(i)==f;