@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/miniprogram.js
CHANGED
|
@@ -2554,6 +2554,10 @@ function transcode(buffer, targetFormat, KTX2File) {
|
|
|
2554
2554
|
cleanup();
|
|
2555
2555
|
throw new Error("Invalid or unsupported .ktx2 file");
|
|
2556
2556
|
}
|
|
2557
|
+
if (!ktx2File.startTranscoding()) {
|
|
2558
|
+
cleanup();
|
|
2559
|
+
throw new Error("KTX2 startTranscoding failed");
|
|
2560
|
+
}
|
|
2557
2561
|
var width = ktx2File.getWidth();
|
|
2558
2562
|
var height = ktx2File.getHeight();
|
|
2559
2563
|
var layerCount = ktx2File.getLayers() || 1;
|
package/dist/module.js
CHANGED
|
@@ -2549,6 +2549,10 @@ function transcode(buffer, targetFormat, KTX2File) {
|
|
|
2549
2549
|
cleanup();
|
|
2550
2550
|
throw new Error("Invalid or unsupported .ktx2 file");
|
|
2551
2551
|
}
|
|
2552
|
+
if (!ktx2File.startTranscoding()) {
|
|
2553
|
+
cleanup();
|
|
2554
|
+
throw new Error("KTX2 startTranscoding failed");
|
|
2555
|
+
}
|
|
2552
2556
|
var width = ktx2File.getWidth();
|
|
2553
2557
|
var height = ktx2File.getHeight();
|
|
2554
2558
|
var layerCount = ktx2File.getLayers() || 1;
|