summaryrefslogtreecommitdiffstats
path: root/thirdparty/msdfgen/core/SignedDistance.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-07 15:36:35 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-07 15:55:29 +0200
commit3c25dfe0e44314cfb51df34a63abda6a1cc78cc1 (patch)
tree4f1fbc710284c4b9dfa7b00edcba0527acdda3d1 /thirdparty/msdfgen/core/SignedDistance.cpp
parentea6a141ffffa6de8a27e2093145ececaaa9aa2f6 (diff)
downloadredot-engine-3c25dfe0e44314cfb51df34a63abda6a1cc78cc1.tar.gz
msdfgen: Sync with upstream 1.10
Diffstat (limited to 'thirdparty/msdfgen/core/SignedDistance.cpp')
-rw-r--r--thirdparty/msdfgen/core/SignedDistance.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/thirdparty/msdfgen/core/SignedDistance.cpp b/thirdparty/msdfgen/core/SignedDistance.cpp
index 18c9d2c424..be956d953e 100644
--- a/thirdparty/msdfgen/core/SignedDistance.cpp
+++ b/thirdparty/msdfgen/core/SignedDistance.cpp
@@ -2,12 +2,11 @@
#include "SignedDistance.h"
#include <cmath>
+#include <cfloat>
namespace msdfgen {
-const SignedDistance SignedDistance::INFINITE(-1e240, 1);
-
-SignedDistance::SignedDistance() : distance(-1e240), dot(1) { }
+SignedDistance::SignedDistance() : distance(-DBL_MAX), dot(1) { }
SignedDistance::SignedDistance(double dist, double d) : distance(dist), dot(d) { }