From 1f7e6e1e724150e5e7309bdb781d7873bcc13687 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 7 Sep 2010 23:21:22 -0700 Subject: 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. --- src/glsl/builtins/ir/refract | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/glsl/builtins/ir/refract') diff --git a/src/glsl/builtins/ir/refract b/src/glsl/builtins/ir/refract index d9dd8226ee..f6319b0ed4 100644 --- a/src/glsl/builtins/ir/refract +++ b/src/glsl/builtins/ir/refract @@ -11,8 +11,8 @@ (expression float * (var_ref eta) (expression float - (constant float (1.0)) (expression float * - (expression float dot (var_ref n) (var_ref i)) - (expression float dot (var_ref n) (var_ref i)))))))) + (expression float * (var_ref n) (var_ref i)) + (expression float * (var_ref n) (var_ref i)))))))) (if (expression bool < (var_ref k) (constant float (0.0))) ((return (constant float (0.0)))) ((return (expression float - @@ -20,7 +20,7 @@ (expression float * (expression float + (expression float * (var_ref eta) - (expression float dot (var_ref n) (var_ref i))) + (expression float * (var_ref n) (var_ref i))) (expression float sqrt (var_ref k))) (var_ref n)))))))) -- cgit v1.2.3