diff --git a/index.html b/index.html index 4b4f532..e650218 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - WebGL test + WebGL waves diff --git a/main.js b/main.js index 6157288..23a23eb 100644 --- a/main.js +++ b/main.js @@ -160,6 +160,8 @@ async function run() { const vertexCount = 4; gl.drawArrays(gl.TRIANGLE_STRIP, offset, vertexCount); + drawable.free(); + window.requestAnimationFrame(drawMe); }