wasm: Add canvas clear on update

Fixed bug that canvas draws wrong frame at alpha area
This commit is contained in:
Jinny You 2024-01-04 16:14:41 +09:00 committed by Hermet Park
parent abef84e935
commit 1c04cab904

View file

@ -142,6 +142,8 @@ public:
errorMsg = NoError;
this->canvas->clear(false);
if (canvas->update() != Result::Success) {
errorMsg = "update() fail";
return false;