Skip to content

Commit a70d486

Browse files
committed
Fix leak
1 parent 27151c8 commit a70d486

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/renderers/common/QuadMesh.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ class QuadGeometry extends BufferGeometry {
3333

3434
}
3535

36-
const _geometry = /*@__PURE__*/ new QuadGeometry();
37-
38-
3936
/**
4037
* This module is a helper for passes which need to render a full
4138
* screen effect which is quite common in context of post processing.
@@ -56,7 +53,7 @@ class QuadMesh extends Mesh {
5653
*/
5754
constructor( material = null ) {
5855

59-
super( _geometry, material );
56+
super( new QuadGeometry(), material );
6057

6158
/**
6259
* The camera to render the quad mesh with.

0 commit comments

Comments
 (0)