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 committed by Hermet Park
parent 290b52198f
commit 5ae556cf13

View file

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