Mesa (master): glsl: Fix typo in builtin step() using a wrong channel.

Eric Anholt anholt at kemper.freedesktop.org
Wed Sep 8 22:09:51 UTC 2010


Module: Mesa
Branch: master
Commit: aa973d3533bd98afb0c2140c30d151ec4a0fb898
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa973d3533bd98afb0c2140c30d151ec4a0fb898

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Sep  8 22:25:12 2010 -0700

glsl: Fix typo in builtin step() using a wrong channel.

---

 src/glsl/builtins/ir/step |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/builtins/ir/step b/src/glsl/builtins/ir/step
index 5627241..7aec9d7 100644
--- a/src/glsl/builtins/ir/step
+++ b/src/glsl/builtins/ir/step
@@ -61,7 +61,7 @@
      ((declare () vec4 t)
       (assign (constant bool (1)) (x) (var_ref t) (expression float b2f (expression bool >= (swiz x (var_ref x))(swiz x (var_ref edge)))))
       (assign (constant bool (1)) (y) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz y (var_ref edge)))))
-      (assign (constant bool (1)) (z) (var_ref t) (expression float b2f (expression bool >= (swiz y (var_ref x))(swiz z (var_ref edge)))))
+      (assign (constant bool (1)) (z) (var_ref t) (expression float b2f (expression bool >= (swiz z (var_ref x))(swiz z (var_ref edge)))))
       (assign (constant bool (1)) (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(swiz w (var_ref edge)))))
       (return (var_ref t))))
 ))




More information about the mesa-commit mailing list