diff options
author | Kenneth Graunke <[email protected]> | 2010-09-07 23:21:22 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-08 12:09:41 -0700 |
commit | 1f7e6e1e724150e5e7309bdb781d7873bcc13687 (patch) | |
tree | 3266e735a4725c8bae35b40ca55ab7c6a7460cb2 /src/glsl/builtins/ir/faceforward | |
parent | 84160a0454b17306e6b9bff5b6e50e54959c5680 (diff) |
glsl/builtins: Don't use ir_binop_dot on floating point values.
ir_binop_dot is only defined for vector types. Use ir_binop_mul.
Diffstat (limited to 'src/glsl/builtins/ir/faceforward')
-rw-r--r-- | src/glsl/builtins/ir/faceforward | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtins/ir/faceforward b/src/glsl/builtins/ir/faceforward index d1703972388..35b79571c6b 100644 --- a/src/glsl/builtins/ir/faceforward +++ b/src/glsl/builtins/ir/faceforward @@ -4,7 +4,7 @@ (declare (in) float N) (declare (in) float I) (declare (in) float Nref)) - ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0))) + ((if (expression bool < (expression float * (var_ref Nref) (var_ref I)) (constant float (0))) ((return (var_ref N))) ((return (expression float neg (var_ref N))))))) |