Linux abs() needs to be fabs(); a few other minor Linux tweaks.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22603 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
4586dbdc1b
commit
8d2fe45334
4 changed files with 4 additions and 7 deletions
|
|
@ -496,7 +496,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TType& returnType,
|
|||
|
||||
case EOpAbs:
|
||||
if (unionArray[i].getType() == EbtDouble)
|
||||
newConstArray[i].setDConst(abs(unionArray[i].getDConst()));
|
||||
newConstArray[i].setDConst(fabs(unionArray[i].getDConst()));
|
||||
else if (unionArray[i].getType() == EbtInt)
|
||||
newConstArray[i].setIConst(abs(unionArray[i].getIConst()));
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue