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 6dc99d74d37de0a751b5827a339334133b9bef8d..32f09d3c7a70df48e401928f834e7fb4df4c114b 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