diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2022-03-27 08:31:38 -0700 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2022-03-29 10:05:43 -0700 |
commit | 683b61b094e69979dd80a204a429f4a78bea1830 (patch) | |
tree | 719a5fbb5f1c4d180a60b26fc6b1e4dc9bb768d2 /modules/svg | |
parent | f0407ad14de5e8c4c668ba4e6a983d2211022d9a (diff) |
Set threads to be one to avoid SVG crash.
Diffstat (limited to 'modules/svg')
-rw-r--r-- | modules/svg/register_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/svg/register_types.cpp b/modules/svg/register_types.cpp index a4341c6f1e..b59c815056 100644 --- a/modules/svg/register_types.cpp +++ b/modules/svg/register_types.cpp @@ -38,7 +38,7 @@ static ImageLoaderSVG *image_loader_svg = nullptr; void register_svg_types() { tvg::CanvasEngine tvgEngine = tvg::CanvasEngine::Sw; - if (tvg::Initializer::init(tvgEngine, 0) != tvg::Result::Success) { + if (tvg::Initializer::init(tvgEngine, 1) != tvg::Result::Success) { return; } image_loader_svg = memnew(ImageLoaderSVG); |