Merge pull request #59583 from V-Sekai/svg-crash

This commit is contained in:
Rémi Verschelde 2022-03-29 19:33:30 +02:00 committed by GitHub
commit da346ed4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);