@galacean/engine-loader 1.1.0-beta.8 → 1.1.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -2553,6 +2553,10 @@ function transcode(buffer, targetFormat, KTX2File) {
2553
2553
  cleanup();
2554
2554
  throw new Error("Invalid or unsupported .ktx2 file");
2555
2555
  }
2556
+ if (!ktx2File.startTranscoding()) {
2557
+ cleanup();
2558
+ throw new Error("KTX2 startTranscoding failed");
2559
+ }
2556
2560
  var width = ktx2File.getWidth();
2557
2561
  var height = ktx2File.getHeight();
2558
2562
  var layerCount = ktx2File.getLayers() || 1;