Skip to content

Commit

Permalink
PMREMGenerator: Fix dispose(). (#23697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Mar 10, 2022
1 parent a5b8ef6 commit 92cbfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extras/PMREMGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class PMREMGenerator {

_dispose() {

this._blurMaterial.dispose();
if ( this._blurMaterial !== null ) this._blurMaterial.dispose();

if ( this._pingPongRenderTarget !== null ) this._pingPongRenderTarget.dispose();

Expand Down

0 comments on commit 92cbfd2

Please sign in to comment.