浏览代码

fix for js

ncannasse 8 年之前
父节点
当前提交
73aa17f7ba
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      h3d/prim/BigPrimitive.hx

+ 3 - 3
h3d/prim/BigPrimitive.hx

@@ -13,9 +13,9 @@ class BigPrimitive extends Primitive {
 	var tmpBuf : hxd.FloatBuffer;
 	var tmpIdx : hxd.IndexBuffer;
 	var bounds : h3d.col.Bounds;
-	var bufPos : Int;
-	var idxPos : Int;
-	var startIndex : Int;
+	var bufPos : Int = 0;
+	var idxPos : Int = 0;
+	var startIndex : Int = 0;
 	var flushing : Bool;
 	#if debug
 	var allocPos : h3d.impl.AllocPos;