Skip to content

Commit

Permalink
Remove unused dfdTransferFn
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Aug 21, 2023
1 parent d3c03b9 commit 80c2c76
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/jsm/loaders/KTX2Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class KTX2Loader extends Loader {

_createTextureFrom( transcodeResult, container ) {

const { faces, width, height, format, type, error, dfdTransferFn, dfdFlags } = transcodeResult;
const { faces, width, height, format, type, error, dfdFlags } = transcodeResult;

if ( type === 'error' ) return Promise.reject( error );

Expand Down Expand Up @@ -408,9 +408,9 @@ KTX2Loader.BasisWorker = function () {

try {

const { faces, buffers, width, height, hasAlpha, format, dfdTransferFn, dfdFlags } = transcode( message.buffer );
const { faces, buffers, width, height, hasAlpha, format, dfdFlags } = transcode( message.buffer );

self.postMessage( { type: 'transcode', id: message.id, faces, width, height, hasAlpha, format, dfdTransferFn, dfdFlags }, buffers );
self.postMessage( { type: 'transcode', id: message.id, faces, width, height, hasAlpha, format, dfdFlags }, buffers );

} catch ( error ) {

Expand Down Expand Up @@ -473,7 +473,6 @@ KTX2Loader.BasisWorker = function () {
const levelCount = ktx2File.getLevels();
const faceCount = ktx2File.getFaces();
const hasAlpha = ktx2File.getHasAlpha();
const dfdTransferFn = ktx2File.getDFDTransferFunc();
const dfdFlags = ktx2File.getDFDFlags();

const { transcoderFormat, engineFormat } = getTranscoderFormat( basisFormat, width, height, hasAlpha );
Expand Down Expand Up @@ -557,7 +556,7 @@ KTX2Loader.BasisWorker = function () {

cleanup();

return { faces, buffers, width, height, hasAlpha, format: engineFormat, dfdTransferFn, dfdFlags };
return { faces, buffers, width, height, hasAlpha, format: engineFormat, dfdFlags };

}

Expand Down

0 comments on commit 80c2c76

Please sign in to comment.