Skip to content

Commit 9465e25

Browse files
authored
Update IntermNode.cpp
1 parent 78b31fb commit 9465e25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/translator/IntermNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,7 @@ const TConstantUnion *TIntermConstantUnion::FoldBinary(TOperator op,
25632563
resultArray = new TConstantUnion[objectSize];
25642564
for (size_t i = 0; i < objectSize; i++)
25652565
{
2566-
if (leftType.getBasicType() == EbtFloat)
2566+
if (IsFloatDivision(leftType.getBasicType(), rightType.getBasicType()))
25672567
{
25682568
// Float division requested, possibly with implicit conversion
25692569
ASSERT(op == EOpDiv);

0 commit comments

Comments
 (0)