wasm binding fixed for wg engine

fixed wrong logic in wg engine initialization process, where initializer return seccuss status in any case
This commit is contained in:
Sergii Liebodkin 2025-04-23 14:43:07 +03:00 committed by Hermet Park
parent c77b6ec8db
commit e24c743ab3

View file

@ -507,9 +507,10 @@ private:
int init()
{
#ifdef THORVG_WG_RASTER_SUPPORT
TvgWgEngine::init();
#endif
return TvgWgEngine::init();
#else
return 0;
#endif
}