Set maxDim within the loop

This commit is contained in:
Richard Davey 2023-03-31 15:49:23 +01:00
parent 6d49b94305
commit ac060e8355

View file

@ -394,6 +394,8 @@ var PipelineManager = new Class({
// Duplicate RT for alt swap frame
targets.push(new RenderTarget(renderer, targetWidth, targetWidth));
this.maxDimension = targetWidth;
}
// Full-screen RTs
@ -401,8 +403,6 @@ var PipelineManager = new Class({
targets.push(new RenderTarget(renderer, renderWidth, renderHeight, 1, 0, true, true));
targets.push(new RenderTarget(renderer, renderWidth, renderHeight, 1, 0, true, true));
this.maxDimension = (qty - 1) * this.frameInc;
// Install each of the default pipelines
var instance;