Commit 82da15f4 by John Kessenich

Fix #2091, remove incorrect assert for division by 0.0.

parent 70ba66cd
...@@ -1079,7 +1079,6 @@ TIntermTyped* TIntermediate::fold(TIntermAggregate* aggrNode) ...@@ -1079,7 +1079,6 @@ TIntermTyped* TIntermediate::fold(TIntermAggregate* aggrNode)
{ {
double arg0 = childConstUnions[0][arg0comp].getDConst(); double arg0 = childConstUnions[0][arg0comp].getDConst();
double arg1 = childConstUnions[1][arg1comp].getDConst(); double arg1 = childConstUnions[1][arg1comp].getDConst();
assert(arg1 != 0.0);
double result = arg0 - arg1 * floor(arg0 / arg1); double result = arg0 - arg1 * floor(arg0 / arg1);
newConstArray[comp].setDConst(result); newConstArray[comp].setDConst(result);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment