Skip to content

Commit

Permalink
dispose of temporary renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Mar 27, 2023
1 parent 74223fa commit 84437a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/jsm/utils/TextureUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ export function decompress( texture, maxTextureSize, renderer ) {
readableTexture.name = texture.name;

readableTexture.userData.mimeType = 'image/png';

if ( ! renderer && temporaryRenderer ) {

temporaryRenderer.dispose();

}

return readableTexture;

}

0 comments on commit 84437a0

Please sign in to comment.