mach: App.update will now return !void instead of !bool

In order to close the application, there is already
Engine.setShouldClose() which would roughly do the same thing.
This commit is contained in:
iddev5 2022-06-08 12:44:27 +05:30 committed by Stephen Gutekanst
parent 3234b6c0dd
commit 40c0659cc9
4 changed files with 6 additions and 9 deletions

View file

@ -25,9 +25,8 @@
instance.exports.wasmInit();
let update = function() {{
const r = instance.exports.wasmUpdate();
if (r) requestAnimationFrame(update)
else instance.exports.wasmDeinit();
instance.exports.wasmUpdate();
requestAnimationFrame(update);
}};
requestAnimationFrame(update);