Skip to content

Commit

Permalink
PMREMGenerator: Fix dispose(). (mrdoob#23697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored and abernier committed Sep 16, 2022
1 parent 5056623 commit 93fd630
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 93fd630

Please sign in to comment.