Browse Source

Fix cache without hash miss

Popov72 4 years ago
parent
commit
0c3184548e
1 changed files with 2 additions and 0 deletions
  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];