Skip to content

Commit

Permalink
add missing prepare node reuse flag
Browse files Browse the repository at this point in the history
  • Loading branch information
douira committed Dec 5, 2023
1 parent 9cefff3 commit 1cd003b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public void collectSortedQuads(NativeBuffer nativeBuffer, Vector3fc cameraPos) {
this.collectSortedQuads(new BSPSortState(nativeBuffer), cameraPos);
}

public static BSPResult buildBSP(TQuad[] quads, ChunkSectionPos sectionPos, BSPNode oldRoot) {
public static BSPResult buildBSP(TQuad[] quads, ChunkSectionPos sectionPos, BSPNode oldRoot, boolean prepareNodeReuse) {
// throw if there's too many quads
InnerPartitionBSPNode.validateQuadCount(quads.length);

// create a workspace and then the nodes figure out the recursive building.
// throws if the BSP can't be built, null if none is necessary
var workspace = new BSPWorkspace(quads, sectionPos);
var workspace = new BSPWorkspace(quads, sectionPos, prepareNodeReuse);

// initialize the indexes to all quads
int[] initialIndexes = new int[quads.length];
Expand Down

0 comments on commit 1cd003b

Please sign in to comment.