Skip to content

Commit 3aed390

Browse files
committed
CompressedTextureLoader: Fix type of CompressedTexture.image.
1 parent 22b24b2 commit 3aed390

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/loaders/CompressedTextureLoader.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
2626
const images = [];
2727

2828
const texture = new CompressedTexture();
29-
texture.image = images;
3029

3130
const loader = new FileLoader( this.manager );
3231
loader.setPath( this.path );
@@ -53,9 +52,9 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
5352

5453
if ( loaded === 6 ) {
5554

56-
if ( texDatas.mipmapCount === 1 )
57-
texture.minFilter = LinearFilter;
55+
if ( texDatas.mipmapCount === 1 ) texture.minFilter = LinearFilter;
5856

57+
texture.image = images;
5958
texture.format = texDatas.format;
6059
texture.needsUpdate = true;
6160

@@ -102,6 +101,8 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
102101

103102
}
104103

104+
texture.image = images;
105+
105106
} else {
106107

107108
texture.image.width = texDatas.width;

0 commit comments

Comments
 (0)