From 341504261a48ac4732251de635e1277a351a76db Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 14 Jan 2025 01:19:51 +0900 Subject: [PATCH] [qfcc] Get the abs functions working Well... probably (again, build issues). --- tools/qfcc/source/glsl-builtins.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/source/glsl-builtins.c b/tools/qfcc/source/glsl-builtins.c index d4044c253..94d5783dd 100644 --- a/tools/qfcc/source/glsl-builtins.c +++ b/tools/qfcc/source/glsl-builtins.c @@ -417,9 +417,9 @@ SRC_LINE //common functions SRC_LINE -"genFType abs(genFType x);" "\n" -"genIType abs(genIType x);" "\n" -"genDType abs(genDType x);" "\n" +"genFType abs(genFType x) = " GLSL(FAbs) ";" "\n" +"genIType abs(genIType x) = " GLSL(SAbs) ";" "\n" +"genDType abs(genDType x) = " GLSL(FAbs) ";" "\n" "genFType sign(genFType x);" "\n" "genIType sign(genIType x);" "\n" "genDType sign(genDType x);" "\n"