The PostFXPipeline.postBatch method will now skip onDraw is the pipeline hasn't booted, introducing an artificial frame skip. This should potentially fix glitch errors on mobile devices where Post FX would appear corrupted for a single frame. Fix #6681

This commit is contained in:
Richard Davey 2024-01-31 20:23:43 +00:00
parent fd1ab35419
commit 51074c4567

View file

@ -289,8 +289,10 @@ var PostFXPipeline = new Class({
{ {
this.bootFX(); this.bootFX();
} }
else
this.onDraw(this.currentRenderTarget); {
this.onDraw(this.currentRenderTarget);
}
this.onPostBatch(gameObject); this.onPostBatch(gameObject);