diff --git a/remote/remote.html b/remote/remote.html
index 310e2d3..6475677 100644
--- a/remote/remote.html
+++ b/remote/remote.html
@@ -189,7 +189,7 @@
// Since the indexes are 16 bit, we cannot have more than 65536 vertices
// at the same time.
- const MAX_VERTICES = 65535;
+ const MAX_VERTICES = 4*65535;
const indexArray = new Uint16Array ( MAX_VERTICES );
// 20 bytes per vertex. We cannot have more veritices than the index array