From: Kenneth Graunke Date: Thu, 22 Jul 2010 00:25:49 +0000 (-0700) Subject: glsl2/builtins: Fix 1.30 sign implementation for ints. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5304c251fcceca40096d69002efcf1a122df259d;p=mesa.git glsl2/builtins: Fix 1.30 sign implementation for ints. --- diff --git a/src/glsl/builtins/130/sign b/src/glsl/builtins/130/sign index 170795948b2..f86062a2443 100644 --- a/src/glsl/builtins/130/sign +++ b/src/glsl/builtins/130/sign @@ -2,7 +2,7 @@ (signature int (parameters (declare (in) int x)) - ((return (expression int / (var_ref x) (expression int abs (var_ref x)))))) + ((return (expression int sign (var_ref x))))) (signature ivec2 (parameters