mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
fix render pipeline init error (#5994)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user