mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
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:
parent
c77b6ec8db
commit
e24c743ab3
1 changed files with 3 additions and 2 deletions
|
@ -507,9 +507,10 @@ private:
|
||||||
int init()
|
int init()
|
||||||
{
|
{
|
||||||
#ifdef THORVG_WG_RASTER_SUPPORT
|
#ifdef THORVG_WG_RASTER_SUPPORT
|
||||||
TvgWgEngine::init();
|
return TvgWgEngine::init();
|
||||||
#endif
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue