ncannasse 9 年之前
父节点
当前提交
fcad8f995a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/TileGroup.hx

+ 1 - 1
h2d/TileGroup.hx

@@ -303,7 +303,7 @@ private class TileLayerContent extends h3d.prim.Primitive {
 	}
 
 	public inline function flush() {
-		if( buffer == null || buffer.isDisposed() ) alloc(engine);
+		if( buffer == null || buffer.isDisposed() ) alloc(h3d.Engine.getCurrent());
 	}
 
 	public function doRender(engine, min, len) {