ncannasse 9 lat temu
rodzic
commit
fcad8f995a
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {