fix render pipeline init error (#5994)

This commit is contained in:
zxg0622
2019-12-28 16:12:12 +08:00
committed by pandamicro
parent 1d09097b41
commit 24e8103051
+3 -2
View File
@@ -700,8 +700,6 @@ export abstract class RenderPipeline {
this._depthStencilFmt = GFXFormat.D16;
}
this.updateMacros();
// colorFmt = GFXFormat.RGBA16F;
// this._shadingScale = this._device.devicePixelRatio;
@@ -794,6 +792,9 @@ export abstract class RenderPipeline {
this.addRenderPass(RenderPassStage.DEFAULT, windowPass);
// update global defines when all states initialized.
this.updateMacros();
return true;
}