Skip to content

Commit

Permalink
Fix a potential memory leak in translucency sorting
Browse files Browse the repository at this point in the history
Backport of 1caa783 to /dev.
  • Loading branch information
IMS212 committed Jul 21, 2024
1 parent 45ab3e2 commit d649cac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public ChunkBuildOutput execute(ChunkBuildContext buildContext, CancellationToke

// cancellation opportunity right before translucent sorting
if (cancellationToken.isCancelled()) {
meshes.forEach((pass, mesh) -> mesh.getVertexData().free());
return null;
}

Expand Down

0 comments on commit d649cac

Please sign in to comment.