소스 검색

js bugfix

ncannasse 8 년 전
부모
커밋
c5c21776d0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;