wasm: thorvg canvas resize problem.

The canvas syncs before changing a target buffer.

issue: https://github.com/thorvg/thorvg/issues/2580
This commit is contained in:
Hermet Park 2024-07-21 17:42:17 +09:00
parent bc77c0ee74
commit ec6e8a6e94

View file

@ -179,6 +179,8 @@ public:
if (!canvas || !animation) return;
if (this->width == width && this->height == height) return;
canvas->sync();
this->width = width;
this->height = height;