From 38068ba981784d58d8e9c0cb32c9fc788933ff38 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Mon, 21 Jun 2021 12:49:05 +0100 Subject: [PATCH] ensure rotating cube is a bit more reliable --- apps/welcome/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/welcome/app.js b/apps/welcome/app.js index 565e87d5d..2f56a887f 100644 --- a/apps/welcome/app.js +++ b/apps/welcome/app.js @@ -182,6 +182,7 @@ function getScene(n) { g.drawString("banglejs.com",x,y+=h); var rx = 0, ry = 0; + E.defrag(); // rearrange memory to ensure we have space var h = Graphics.createArrayBuffer(96,96,1,{msb:true}); // draw a cube function draw() {