mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
[Web] Disable thorvg threads on the Web
They're of little help, and just adds to the possibility of causing deadlocks.
This commit is contained in:
2
thirdparty/thorvg/inc/config.h
vendored
2
thirdparty/thorvg/inc/config.h
vendored
@@ -5,7 +5,9 @@
|
|||||||
#define THORVG_SVG_LOADER_SUPPORT
|
#define THORVG_SVG_LOADER_SUPPORT
|
||||||
#define THORVG_PNG_LOADER_SUPPORT
|
#define THORVG_PNG_LOADER_SUPPORT
|
||||||
#define THORVG_JPG_LOADER_SUPPORT
|
#define THORVG_JPG_LOADER_SUPPORT
|
||||||
|
#ifndef WEB_ENABLED
|
||||||
#define THORVG_THREAD_SUPPORT
|
#define THORVG_THREAD_SUPPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
// Added conditionally if webp module is enabled.
|
// Added conditionally if webp module is enabled.
|
||||||
//#define THORVG_WEBP_LOADER_SUPPORT
|
//#define THORVG_WEBP_LOADER_SUPPORT
|
||||||
|
|||||||
2
thirdparty/thorvg/update-thorvg.sh
vendored
2
thirdparty/thorvg/update-thorvg.sh
vendored
@@ -38,7 +38,9 @@ cat << EOF > ../inc/config.h
|
|||||||
#define THORVG_SVG_LOADER_SUPPORT
|
#define THORVG_SVG_LOADER_SUPPORT
|
||||||
#define THORVG_PNG_LOADER_SUPPORT
|
#define THORVG_PNG_LOADER_SUPPORT
|
||||||
#define THORVG_JPG_LOADER_SUPPORT
|
#define THORVG_JPG_LOADER_SUPPORT
|
||||||
|
#ifndef WEB_ENABLED
|
||||||
#define THORVG_THREAD_SUPPORT
|
#define THORVG_THREAD_SUPPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
// Added conditionally if webp module is enabled.
|
// Added conditionally if webp module is enabled.
|
||||||
//#define THORVG_WEBP_LOADER_SUPPORT
|
//#define THORVG_WEBP_LOADER_SUPPORT
|
||||||
|
|||||||
Reference in New Issue
Block a user