diff options
author | Kenneth Graunke <[email protected]> | 2010-09-09 15:15:31 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-09 15:23:12 -0700 |
commit | 6dcca5a308efd7a85caa52f970ed020926c487e9 (patch) | |
tree | acb9a806833f255030a617168eb4904ef58478d8 /src/glsl/builtins | |
parent | 6fe1b479ca92b8abc7461d4be1c019bbefe0ef51 (diff) |
glsl/builtins: normalize of a negative scalar should be -1.0.
Diffstat (limited to 'src/glsl/builtins')
-rw-r--r-- | src/glsl/builtins/ir/normalize | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtins/ir/normalize b/src/glsl/builtins/ir/normalize index 02b249a57f8..0de0db0b648 100644 --- a/src/glsl/builtins/ir/normalize +++ b/src/glsl/builtins/ir/normalize @@ -2,7 +2,7 @@ (signature float (parameters (declare (in) float arg0)) - ((return (constant float (1.0))))) + ((return (expression float sign (var_ref arg0))))) (signature vec2 (parameters |