diff options
Diffstat (limited to 'src/glsl/builtin_function.cpp')
-rw-r--r-- | src/glsl/builtin_function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/builtin_function.cpp b/src/glsl/builtin_function.cpp index 11b96fdcbd8..0a2b0120f26 100644 --- a/src/glsl/builtin_function.cpp +++ b/src/glsl/builtin_function.cpp @@ -724,7 +724,7 @@ static const char *builtin_distance = " (parameters\n" " (declare (in) float p0)\n" " (declare (in) float p1))\n" - " ((return (expression float - (var_ref p0) (var_ref p1)))))\n" + " ((return (expression float abs (expression float - (var_ref p0) (var_ref p1))))))\n" "\n" " (signature float\n" " (parameters\n" @@ -1302,7 +1302,7 @@ static const char *builtin_length = " (signature float\n" " (parameters\n" " (declare (in) float arg0))\n" - " ((return (var_ref arg0))))\n" + " ((return (expression float abs (var_ref arg0)))))\n" "\n" " (signature float\n" " (parameters\n" |