Skip to content

Commit a1e4527

Browse files
committed
Push mipmap as POJO with {data, width, height}
1 parent eb2eafe commit a1e4527

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/jsm/loaders/KTX2Loader.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,11 @@ class KTX2Loader extends Loader {
279279

280280
pendings.push( createDataTexture( container, levelIndex ).then( function ( dataTexture ) {
281281

282-
mipmaps[ levelIndex ] = dataTexture;
282+
mipmaps[ levelIndex ] = {
283+
data: dataTexture.image.data,
284+
width: dataTexture.image.width,
285+
height: dataTexture.image.height
286+
};
283287

284288
} ) );
285289

0 commit comments

Comments
 (0)