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:
Richard Davey 2023-09-07 14:43:36 +01:00
parent 461e615b03
commit fe05501e38

View file

@ -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)