Skip to content

Commit

Permalink
SSAAPassNode: Add dispose(). (mrdoob#29119)
Browse files Browse the repository at this point in the history
* SSAAPassNode: Add `dispose()`.

* SSAAPassNode: Add missing `super` call.
  • Loading branch information
Mugen87 committed Aug 12, 2024
1 parent 5762f70 commit a539d90
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/nodes/display/SSAAPassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,18 @@ class SSAAPassNode extends PassNode {

}

dispose() {

super.dispose();

if ( this.sampleRenderTarget !== null ) {

this.sampleRenderTarget.dispose();

}

}

}

// These jitter vectors are specified in integers because it is easier.
Expand Down

0 comments on commit a539d90

Please sign in to comment.