Kaynağa Gözat

Property name changed to make intent clearer

Popov72 5 yıl önce
ebeveyn
işleme
90551ffe57
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      ktx2Decoder/src/wasmMemoryManager.ts

+ 2 - 2
ktx2Decoder/src/wasmMemoryManager.ts

@@ -5,13 +5,13 @@ declare function postMessage(message: any, transfer?: any[]): void;
  */
 export class WASMMemoryManager {
 
-    public static LoadBinariesFromMainThread = false;
+    public static LoadBinariesFromCurrentThread = true;
     public static InitialMemoryPages = (1 * 1024 * 1024) >> 16; // 1 Mbytes
 
     private static _RequestId = 0;
 
     public static LoadWASM(path: string): Promise<ArrayBuffer> {
-        if (!this.LoadBinariesFromMainThread) {
+        if (this.LoadBinariesFromCurrentThread) {
             return new Promise((resolve) => {
                 fetch(path)
                 .then((response) => response.arrayBuffer())