Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 32758d9

Browse files
committed
fix ProgressiveTexture memory leak
1 parent e0c1ff1 commit 32758d9

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

build/three.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24189,7 +24189,7 @@
2418924189
this.data = new Uint8Array( this.size * this.size * 3 );
2419024190
this.dataOffsetY = 0;
2419124191

24192-
this.image = { data: this.data, width: this.size, height: this.size };
24192+
this.image = { width: this.size, height: this.size };
2419324193

2419424194
this.uploaded = false;
2419524195
this.loaded = false;

build/three.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24183,7 +24183,7 @@ function ProgressiveTexture( size, mapping, wrapS, wrapT, magFilter, minFilter,
2418324183
this.data = new Uint8Array( this.size * this.size * 3 );
2418424184
this.dataOffsetY = 0;
2418524185

24186-
this.image = { data: this.data, width: this.size, height: this.size };
24186+
this.image = { width: this.size, height: this.size };
2418724187

2418824188
this.uploaded = false;
2418924189
this.loaded = false;

src/textures/ProgressiveTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function ProgressiveTexture( size, mapping, wrapS, wrapT, magFilter, minFilter,
1010
this.data = new Uint8Array( this.size * this.size * 3 );
1111
this.dataOffsetY = 0;
1212

13-
this.image = { data: this.data, width: this.size, height: this.size };
13+
this.image = { width: this.size, height: this.size };
1414

1515
this.uploaded = false;
1616
this.loaded = false;

0 commit comments

Comments
 (0)