mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
Fixed check uint64 before set bool
This commit is contained in:
parent
a7785ea1ff
commit
db933d7743
@ -689,7 +689,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TType& returnType)
|
|||||||
case EOpConvInt64ToBool:
|
case EOpConvInt64ToBool:
|
||||||
newConstArray[i].setBConst(unionArray[i].getI64Const() != 0); break;
|
newConstArray[i].setBConst(unionArray[i].getI64Const() != 0); break;
|
||||||
case EOpConvUint64ToBool:
|
case EOpConvUint64ToBool:
|
||||||
newConstArray[i].setBConst(unionArray[i].getI64Const() != 0); break;
|
newConstArray[i].setBConst(unionArray[i].getU64Const() != 0); break;
|
||||||
case EOpConvFloat16ToBool:
|
case EOpConvFloat16ToBool:
|
||||||
newConstArray[i].setBConst(unionArray[i].getDConst() != 0); break;
|
newConstArray[i].setBConst(unionArray[i].getDConst() != 0); break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user