diff --git a/qbsp/portals.cc b/qbsp/portals.cc index 1dd06292..19d46bfb 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -449,10 +449,8 @@ void MakeTreePortals_r(node_t *node, portalstats_t &stats) MakeNodePortal(node, stats); SplitNodePortals(node, stats); - tbb::task_group g; - g.run([&]() { MakeTreePortals_r(node->children[0], stats); }); - g.run([&]() { MakeTreePortals_r(node->children[1], stats); }); - g.wait(); + MakeTreePortals_r(node->children[0], stats); + MakeTreePortals_r(node->children[1], stats); } /* diff --git a/qbsp/prtfile.cc b/qbsp/prtfile.cc index ee1afab1..cd24cc4d 100644 --- a/qbsp/prtfile.cc +++ b/qbsp/prtfile.cc @@ -288,10 +288,8 @@ void CreateVisPortals_r(node_t *node, portalstats_t &stats) MakeNodePortal(node, stats); SplitNodePortals(node, stats); - tbb::task_group g; - g.run([&]() { CreateVisPortals_r(node->children[0], stats); }); - g.run([&]() { CreateVisPortals_r(node->children[1], stats); }); - g.wait(); + CreateVisPortals_r(node->children[0], stats); + CreateVisPortals_r(node->children[1], stats); } /*