summaryrefslogtreecommitdiffstats
path: root/thirdparty
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-06-13 23:54:59 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-06-14 16:03:56 +0200
commitc95bd2d264c7e8fe49fe04760e51f221d4df42df (patch)
tree1acce5c71a1fbbb037de44813f4db92f2238e499 /thirdparty
parent7af8c494ab885911f5796c7b16a1a0314f2d6c67 (diff)
downloadredot-engine-c95bd2d264c7e8fe49fe04760e51f221d4df42df.tar.gz
[Web] Disable thorvg threads on the Web
They're of little help, and just adds to the possibility of causing deadlocks.
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/thorvg/inc/config.h2
-rwxr-xr-xthirdparty/thorvg/update-thorvg.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/thirdparty/thorvg/inc/config.h b/thirdparty/thorvg/inc/config.h
index 699076fdf1..e2a61a9384 100644
--- a/thirdparty/thorvg/inc/config.h
+++ b/thirdparty/thorvg/inc/config.h
@@ -5,7 +5,9 @@
#define THORVG_SVG_LOADER_SUPPORT
#define THORVG_PNG_LOADER_SUPPORT
#define THORVG_JPG_LOADER_SUPPORT
+#ifndef WEB_ENABLED
#define THORVG_THREAD_SUPPORT
+#endif
// Added conditionally if webp module is enabled.
//#define THORVG_WEBP_LOADER_SUPPORT
diff --git a/thirdparty/thorvg/update-thorvg.sh b/thirdparty/thorvg/update-thorvg.sh
index c980b89c4b..c0034ba888 100755
--- a/thirdparty/thorvg/update-thorvg.sh
+++ b/thirdparty/thorvg/update-thorvg.sh
@@ -38,7 +38,9 @@ cat << EOF > ../inc/config.h
#define THORVG_SVG_LOADER_SUPPORT
#define THORVG_PNG_LOADER_SUPPORT
#define THORVG_JPG_LOADER_SUPPORT
+#ifndef WEB_ENABLED
#define THORVG_THREAD_SUPPORT
+#endif
// Added conditionally if webp module is enabled.
//#define THORVG_WEBP_LOADER_SUPPORT