mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +00:00
wasm: Add canvas clear on update
Fixed bug that canvas draws wrong frame at alpha area
This commit is contained in:
parent
abef84e935
commit
1c04cab904
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ public:
|
||||||
|
|
||||||
errorMsg = NoError;
|
errorMsg = NoError;
|
||||||
|
|
||||||
|
this->canvas->clear(false);
|
||||||
|
|
||||||
if (canvas->update() != Result::Success) {
|
if (canvas->update() != Result::Success) {
|
||||||
errorMsg = "update() fail";
|
errorMsg = "update() fail";
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue