mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +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;
|
||||
|
||||
this->canvas->clear(false);
|
||||
|
||||
if (canvas->update() != Result::Success) {
|
||||
errorMsg = "update() fail";
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue