]> git.sesse.net Git - movit/commitdiff
1.0f is not allowed in GLSL; 1.0 it is.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Oct 2012 23:59:04 +0000 (01:59 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Oct 2012 23:59:04 +0000 (01:59 +0200)
flat_input.frag

index 4bc055e8baec0a00f2552cea2bc65bc732e04ad8..d7c04cc5718f7fc5f0d38923932a601751426f41 100644 (file)
@@ -4,7 +4,7 @@ vec4 FUNCNAME(vec2 tc) {
        // OpenGL's origin is bottom-left, but most graphics software assumes
        // a top-left origin. Thus, for inputs that come from the user,
        // we flip the y coordinate.
        // OpenGL's origin is bottom-left, but most graphics software assumes
        // a top-left origin. Thus, for inputs that come from the user,
        // we flip the y coordinate.
-       tc.y = 1.0f - tc.y;
+       tc.y = 1.0 - tc.y;
 
        return texture2D(PREFIX(tex), tc);
 }
 
        return texture2D(PREFIX(tex), tc);
 }