فهرست منبع

Merge pull request #7022 from sebavan/master

Fix Spector Rebuild Error ParallelShaderCompile
sebavan 5 سال پیش
والد
کامیت
58f106e638
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/Materials/effect.ts

+ 5 - 5
src/Materials/effect.ts

@@ -418,23 +418,23 @@ export class Effect implements IDisposable {
 
         if (!this._pipelineContext || this._pipelineContext.isAsync) {
             setTimeout(() => {
-                this._checkIsReady();
+                this._checkIsReady(null);
             }, 16);
         }
     }
 
-    private _checkIsReady() {
+    private _checkIsReady(previousPipelineContext: Nullable<IPipelineContext>) {
         try {
             if (this._isReadyInternal()) {
                 return;
             }
         } catch (e) {
-            this._processCompilationErrors(e);
+            this._processCompilationErrors(e, previousPipelineContext);
             return;
         }
 
         setTimeout(() => {
-            this._checkIsReady();
+            this._checkIsReady(previousPipelineContext);
         }, 16);
     }
 
@@ -589,7 +589,7 @@ export class Effect implements IDisposable {
             });
 
             if (this._pipelineContext.isAsync) {
-                this._checkIsReady();
+                this._checkIsReady(previousPipelineContext);
             }
 
         } catch (e) {