Explorar o código

Set threads to be one to avoid SVG crash.

K. S. Ernest (iFire) Lee %!s(int64=3) %!d(string=hai) anos
pai
achega
683b61b094
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {
 void register_svg_types() {
 	tvg::CanvasEngine tvgEngine = tvg::CanvasEngine::Sw;
 	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;
 		return;
 	}
 	}
 	image_loader_svg = memnew(ImageLoaderSVG);
 	image_loader_svg = memnew(ImageLoaderSVG);