Browse Source

Fix cache without hash miss

Popov72 4 năm trước cách đây
mục cha
commit
0c3184548e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Engines/WebGPU/webgpuCacheRenderPipeline.ts

+ 2 - 0
src/Engines/WebGPU/webgpuCacheRenderPipeline.ts

@@ -221,6 +221,8 @@ export class WebGPUCacheRenderPipeline {
             return this._currentRenderPipeline;
         }
 
+        this._isDirty = false;
+
         let hash = this._states.join();
         let pipeline = WebGPUCacheRenderPipeline._Cache[hash];