Browse Source

js bugfix

ncannasse 8 years ago
parent
commit
c5c21776d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/FloatBuffer.hx

+ 1 - 1
hxd/FloatBuffer.hx

@@ -8,7 +8,7 @@ private abstract Float32Expand({ pos : Int, array : js.html.Float32Array }) {
 	public var length(get, set) : Int;
 
 	public function new(length) {
-		this = { pos : 0, array : new js.html.Float32Array(new js.html.ArrayBuffer(length)) };
+		this = { pos : 0, array : new js.html.Float32Array(new js.html.ArrayBuffer(length<<2)) };
 	}
 
 	inline function get_length() return this.pos;