summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/distance
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/builtins/ir/distance')
-rw-r--r--src/glsl/builtins/ir/distance2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtins/ir/distance b/src/glsl/builtins/ir/distance
index f73f755b32b..7789ca6314d 100644
--- a/src/glsl/builtins/ir/distance
+++ b/src/glsl/builtins/ir/distance
@@ -3,7 +3,7 @@
(parameters
(declare (in) float p0)
(declare (in) float p1))
- ((return (expression float - (var_ref p0) (var_ref p1)))))
+ ((return (expression float abs (expression float - (var_ref p0) (var_ref p1))))))
(signature float
(parameters