summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/length
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-09-08 15:38:09 -0700
committerKenneth Graunke <[email protected]>2010-09-08 15:38:09 -0700
commitfc1daab2a2846912d3da5eb69e1ce0afbf08ab04 (patch)
treeddbef3d328b6ca3cf7d07de0ce0077c42ebd02cd /src/glsl/builtins/ir/length
parentc3db43df046daf46e98cc3043129b5b56c513799 (diff)
glsl: Fix for scalar float built-in definitions.
These need abs, and we need more tests.
Diffstat (limited to 'src/glsl/builtins/ir/length')
-rw-r--r--src/glsl/builtins/ir/length2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtins/ir/length b/src/glsl/builtins/ir/length
index 3fc3103da16..b72334ee8a2 100644
--- a/src/glsl/builtins/ir/length
+++ b/src/glsl/builtins/ir/length
@@ -2,7 +2,7 @@
(signature float
(parameters
(declare (in) float arg0))
- ((return (var_ref arg0))))
+ ((return (expression float abs (var_ref arg0)))))
(signature float
(parameters