Fixing the Postfix pipeline without introducing a skip frame

Due to #6681, we introduced a skip frame to wait for the PostFX pipeline to be correctly booted.
While this fixed the display issue, it introduced a "skip" frame.
The pipeline would only be visible one frame after being introduced.

The root issue is a binding issue on currentRenderTarget.

Here, we fix the root issue and remove the skip frame.
This commit is contained in:
David Négrier 2024-02-02 16:05:08 +01:00
parent bc9d017703
commit e5454a1203

View file

@ -288,11 +288,14 @@ var PostFXPipeline = new Class({
if (!this.hasBooted)
{
this.bootFX();
if (this.currentRenderTarget)
{
this.currentRenderTarget.bind();
}
}
else
{
this.onDraw(this.currentRenderTarget);
}
this.onDraw(this.currentRenderTarget);
this.onPostBatch(gameObject);