Skip to content

Commit

Permalink
Cleanup PostProcessModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Dec 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 98b1176 commit 9351647
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/carto/src/layers/post-process-utils.ts
Original file line number Diff line number Diff line change
@@ -185,6 +185,14 @@ export function PostProcessModifier<T extends Constructor<DrawableCompositeLayer

this.internalState.renderInProgress = false;
}

_finalize(): void {
this.internalState.renderBuffers.forEach((fbo: Framebuffer) => {
fbo.destroy();
});
this.internalState.renderBuffers = null;
this.internalState.postProcess.cleanup();
}
};
}

0 comments on commit 9351647

Please sign in to comment.