projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70ba66c
)
Fix #2091, remove incorrect assert for division by 0.0.
author
John Kessenich
<cepheus@frii.com>
Fri, 28 Feb 2020 11:09:29 +0000
(
04:09
-0700)
committer
John Kessenich
<cepheus@frii.com>
Fri, 28 Feb 2020 11:10:13 +0000
(
04:10
-0700)
glslang/MachineIndependent/Constant.cpp
patch
|
blob
|
history
diff --git
a/glslang/MachineIndependent/Constant.cpp
b/glslang/MachineIndependent/Constant.cpp
index
0002d36
..
97908e0
100644
(file)
--- 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;