Skip to content

Commit

Permalink
Remove terrainModule from ShaderAssembler on cleanup (#8666)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored Mar 15, 2024
1 parent 12624ac commit 6f75ec5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/extensions/src/terrain/terrain-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ export class TerrainEffect implements Effect {
terrainCover.delete();
}
this.terrainCovers.clear();

getShaderAssembler().removeDefaultModule(terrainModule);
}

private _updateHeightMap(terrainLayers: Layer[], viewport: Viewport, opts: PreRenderOptions) {
Expand Down

0 comments on commit 6f75ec5

Please sign in to comment.