glslang portability: Fixed a slew of OSX compilation warnings (but not all).
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31469 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
79eaa91e6f
commit
fae38ee277
12 changed files with 83 additions and 75 deletions
|
|
@ -132,6 +132,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* const
|
|||
}
|
||||
|
||||
TConstUnionArray newConstArray(newComps);
|
||||
TType constBool(EbtBool, EvqConst);
|
||||
|
||||
switch(op) {
|
||||
case EOpAdd:
|
||||
|
|
@ -265,27 +266,27 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* const
|
|||
|
||||
case EOpLessThan:
|
||||
newConstArray[0].setBConst(unionArray[0] < rightUnionArray[0]);
|
||||
returnType.shallowCopy(TType(EbtBool, EvqConst));
|
||||
returnType.shallowCopy(constBool);
|
||||
break;
|
||||
case EOpGreaterThan:
|
||||
newConstArray[0].setBConst(unionArray[0] > rightUnionArray[0]);
|
||||
returnType.shallowCopy(TType(EbtBool, EvqConst));
|
||||
returnType.shallowCopy(constBool);
|
||||
break;
|
||||
case EOpLessThanEqual:
|
||||
newConstArray[0].setBConst(! (unionArray[0] > rightUnionArray[0]));
|
||||
returnType.shallowCopy(TType(EbtBool, EvqConst));
|
||||
returnType.shallowCopy(constBool);
|
||||
break;
|
||||
case EOpGreaterThanEqual:
|
||||
newConstArray[0].setBConst(! (unionArray[0] < rightUnionArray[0]));
|
||||
returnType.shallowCopy(TType(EbtBool, EvqConst));
|
||||
returnType.shallowCopy(constBool);
|
||||
break;
|
||||
case EOpEqual:
|
||||
newConstArray[0].setBConst(node->getConstArray() == unionArray);
|
||||
returnType.shallowCopy(TType(EbtBool, EvqConst));
|
||||
returnType.shallowCopy(constBool);
|
||||
break;
|
||||
case EOpNotEqual:
|
||||
newConstArray[0].setBConst(node->getConstArray() != unionArray);
|
||||
returnType.shallowCopy(TType(EbtBool, EvqConst));
|
||||
returnType.shallowCopy(constBool);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue