fix ui renderer error (#4105)

This commit is contained in:
JoneLau
2019-03-26 18:05:26 +08:00
committed by Weiliang Wang
parent 682c9d19dc
commit ec4be5700a
+2 -2
View File
@@ -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);