From 82da15f4f07ebf8eb27bdd102b5dd5a7f4a70c84 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Fri, 28 Feb 2020 04:09:29 -0700 Subject: [PATCH] Fix #2091, remove incorrect assert for division by 0.0. --- glslang/MachineIndependent/Constant.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/glslang/MachineIndependent/Constant.cpp b/glslang/MachineIndependent/Constant.cpp index 0002d360..97908e09 100644 --- a/glslang/MachineIndependent/Constant.cpp +++ b/glslang/MachineIndependent/Constant.cpp @@ -1079,7 +1079,6 @@ TIntermTyped* TIntermediate::fold(TIntermAggregate* aggrNode) { double arg0 = childConstUnions[0][arg0comp].getDConst(); double arg1 = childConstUnions[1][arg1comp].getDConst(); - assert(arg1 != 0.0); double result = arg0 - arg1 * floor(arg0 / arg1); newConstArray[comp].setDConst(result); break;