@galacean/engine-loader 1.1.0-beta.7 → 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 +4 -0
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +4 -0
- package/dist/module.js +4 -0
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
- package/types/ktx2/transcoder/AbstractTranscoder.d.ts +1 -1
- package/types/ktx2/transcoder/BinomialLLCTranscoder.d.ts +1 -1
- package/types/ktx2/transcoder/BinomialLLCWorkerCode.d.ts +1 -1
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;
|