Don't waste space with too huge stl containers.
Modified Files: simgear/scene/bvh/BVHStaticGeometryBuilder.hxx
This commit is contained in:
@@ -117,6 +117,7 @@ public:
|
|||||||
const BVHStaticNode* tree = buildTreeRecursive(_leafRefList);
|
const BVHStaticNode* tree = buildTreeRecursive(_leafRefList);
|
||||||
if (!tree)
|
if (!tree)
|
||||||
return 0;
|
return 0;
|
||||||
|
_staticData->trim();
|
||||||
return new BVHStaticGeometry(tree, _staticData);
|
return new BVHStaticGeometry(tree, _staticData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user