mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
fix ui renderer error (#4105)
This commit is contained in:
@@ -178,11 +178,11 @@ export class CanvasComponent extends Component {
|
||||
targetDisplay: 0,
|
||||
priority: this._priority,
|
||||
isUI: true,
|
||||
stages: ['UIFlow'],
|
||||
flows: ['UIFlow'],
|
||||
});
|
||||
|
||||
this._camera!.fov = 45;
|
||||
this._camera!.clearFlag = GFXClearFlag.DEPTH | GFXClearFlag.STENCIL;
|
||||
this._camera!.clearFlag = GFXClearFlag.COLOR | GFXClearFlag.DEPTH | GFXClearFlag.STENCIL;
|
||||
|
||||
const device = cc.director.root.device;
|
||||
this._camera!.resize(device.width, device.height);
|
||||
|
||||
Reference in New Issue
Block a user