mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-12 21:20:06 +00:00
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
@ -11,6 +11,4 @@ export LD_LIBRARY_PATH
|
||||
|
||||
# run using test data
|
||||
cd Test
|
||||
../StandAlone/StandAlone -i sample.vert sample.frag
|
||||
|
||||
|
||||
../StandAlone/glslangValidator -i sample.vert sample.frag
|
||||
|
@ -7,5 +7,5 @@ while read t; do
|
||||
echo Running $t...
|
||||
b=`basename $t`
|
||||
./glslangValidator.exe -i $t > $TARGETDIR/$b.out
|
||||
diff $BASEDIR/$b.out $TARGETDIR/$b.out
|
||||
diff -b $BASEDIR/$b.out $TARGETDIR/$b.out
|
||||
done < testlist
|
||||
|
@ -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
|
||||
|
@ -24,8 +24,7 @@ default: all
|
||||
|
||||
all: $(SHAREDOBJECT)
|
||||
|
||||
$(SHAREDOBJECT): gen_glslang_tab.o $(OBJECTS) \
|
||||
$(LIBPREPROCESSOR) $(LIBCODEGEN) $(LIBOSDEPENDENT) $(LIBINITIALISATION)
|
||||
$(SHAREDOBJECT): gen_glslang_tab.o $(OBJECTS) $(LIBPREPROCESSOR) $(LIBCODEGEN) $(LIBOSDEPENDENT) $(LIBINITIALISATION)
|
||||
$(CC) -fPIC -shared -o $@ -rdynamic -Wl,-whole-archive $(OBJECTS) $(LIBPREPROCESSOR) $(LIBCODEGEN) $(LIBOSDEPENDENT) $(LIBINITIALISATION) gen_glslang_tab.o -Wl,-no-whole-archive
|
||||
cp $@ ../../Test
|
||||
cp $@ ../../Install/Linux
|
||||
|
Loading…
Reference in New Issue
Block a user