mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
The PostFXPipeline
will now set autoResize
to true
on all of its RenderTarget
instances. This fixes an issue where the PostFXPipeline
would not resize the render targets when the game size changed, causing them to become out of sync with the game canvas. Fix #6503 #6527
This commit is contained in:
parent
461e615b03
commit
fe05501e38
1 changed files with 7 additions and 0 deletions
|
@ -244,6 +244,13 @@ var PostFXPipeline = new Class({
|
|||
this.halfFrame2 = utility.halfFrame2;
|
||||
|
||||
this.set1i('uMainSampler', 0);
|
||||
|
||||
var targets = this.renderTargets;
|
||||
|
||||
for (var i = 0; i < targets.length; i++)
|
||||
{
|
||||
targets[i].autoResize = true;
|
||||
}
|
||||
},
|
||||
|
||||
onDraw: function (renderTarget)
|
||||
|
|
Loading…
Add table
Reference in a new issue