Skip to content

Commit

Permalink
Update examples/jsm/loaders/KTX2Loader.js
Browse files Browse the repository at this point in the history
Co-authored-by: Levi Pesin <[email protected]>
  • Loading branch information
emmanueljl and LeviPesin authored May 1, 2023
1 parent b0c1ac7 commit 3d2fad5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/jsm/loaders/KTX2Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ class KTX2Loader extends Loader {

await Promise.all( pendings );

const texture = mipmaps[0];
texture.mipmaps = mipmaps.map(dt => {
const texture = mipmaps[ 0 ];
texture.mipmaps = mipmaps.map( dt => {
return {
data: dt.source.data,
width: dt.source.data.width,
height: dt.source.data.height,
depth: dt.source.data.depth
};
});
} );
return texture;

}
Expand Down

0 comments on commit 3d2fad5

Please sign in to comment.