Benjamin Guignabert 4 vuotta sitten
vanhempi
commit
7760af73a5

+ 4 - 0
src/PostProcesses/postProcess.ts

@@ -733,6 +733,7 @@ export class PostProcess {
 
     private _disposeTextures() {
         if (this._shareOutputWithPostProcess || this._forcedOutputTexture) {
+            this._disposeTextureCache();
             return;
         }
 
@@ -747,8 +748,11 @@ export class PostProcess {
             }
         }
 
+        this._disposeTextureCache();
         this._textures.dispose();
+    }
 
+    private _disposeTextureCache() {
         for (let i = this._textureCache.length - 1; i >= 0; i--) {
             this._engine._releaseTexture(this._textureCache[i]);
             this._textureCache.splice(i, 1);

BIN
tests/validation/ReferenceImages/prepass-ssao-msaa.png


+ 1 - 1
tests/validation/config.json

@@ -1062,7 +1062,7 @@
         },
         {
             "title": "Prepass SSAO + glow layer",
-            "renderCount": 10,
+            "renderCount": 30,
             "playgroundId": "#LRFB2D#114",
             "referenceImage": "prepass-ssao-glow-layer.png"
         },