mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
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:
parent
bc9d017703
commit
e5454a1203
1 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue