summaryrefslogtreecommitdiffstats
path: root/thirdparty/msdfgen/core/SignedDistance.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-07 16:07:02 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-07 16:07:02 +0200
commit285fbcc52f89ff8a26730c80d33925d24c35e5bc (patch)
treea6c6045c164e3564f539d2970ce78a2c63200797 /thirdparty/msdfgen/core/SignedDistance.cpp
parent803ad983039881029656c5ef4f58bca1a4f3d366 (diff)
parent3c25dfe0e44314cfb51df34a63abda6a1cc78cc1 (diff)
downloadredot-engine-285fbcc52f89ff8a26730c80d33925d24c35e5bc.tar.gz
Merge pull request #77959 from akien-mga/msdfgen-1.10
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) { }