summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.cginc b/math.cginc
index 507ca74..6b39bdb 100644
--- a/math.cginc
+++ b/math.cginc
@@ -279,7 +279,7 @@ float3x3 invert(float3x3 m)
uint gcd(uint a, uint b)
{
uint tmp = a * b;
- #define GCD_MAX_ITER 10
+ #define GCD_MAX_ITER 8
for (uint i = 0; i < GCD_MAX_ITER; i++) {
tmp = b;
b = a % b;