Browse Source

Set threads to be one to avoid SVG crash.

K. S. Ernest (iFire) Lee 3 years ago
parent
commit
683b61b094
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/svg/register_types.cpp

+ 1 - 1
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);