glsl/builtins: Rename 'x' to 'y_over_x' in atan(float) implementation.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 31 Oct 2010 04:51:01 +0000 (21:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Nov 2010 20:39:41 +0000 (13:39 -0700)
For consistency with the vec2/vec3/vec4 variants.

src/glsl/builtins/ir/atan

index 6dc99d7..32f09d3 100644 (file)
@@ -1,14 +1,14 @@
 ((function atan
    (signature float
      (parameters
-       (declare (in) float x))
+       (declare (in) float y_over_x))
      ((return (call asin ((expression float *
-                          (var_ref x)
+                          (var_ref y_over_x)
                           (expression float rsq
                            (expression float +
                             (expression float *
-                             (var_ref x)
-                             (var_ref x))
+                             (var_ref y_over_x)
+                             (var_ref y_over_x))
                             (constant float (1.0))))))))))
 
    (signature vec2