From 944e5c21adecd2b57af76d76854f4acfabf74402 Mon Sep 17 00:00:00 2001 From: Pepper Date: Tue, 23 Aug 2016 16:04:52 -0400 Subject: multithreaded now --- share/frontend/imlandscape/js/3D_Landscape.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/frontend/imlandscape/js') diff --git a/share/frontend/imlandscape/js/3D_Landscape.js b/share/frontend/imlandscape/js/3D_Landscape.js index 411bfe7..7431bcd 100644 --- a/share/frontend/imlandscape/js/3D_Landscape.js +++ b/share/frontend/imlandscape/js/3D_Landscape.js @@ -31,7 +31,8 @@ function initGraphics(textureFile, heightmapFile, cb) { //Get heightmap data //Generates the heightmap data from the heightmap image - var size = worldWidth * worldDepth, data = new Float32Array(size); + var size = worldWidth * worldDepth + var data = new Float32Array(size); var canvas = document.createElement('canvas'); canvas.width = worldWidth; -- cgit v1.2.3-70-g09d2