mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Merge pull request #2402 from pandamicro/next
Avoid editor report issue when init renderer before canvas init
This commit is contained in:
@@ -135,7 +135,7 @@ module.exports = {
|
||||
this._camera.tx = vp.x;
|
||||
this._camera.ty = vp.y + vp.height;
|
||||
}
|
||||
else {
|
||||
else if (this.canvas) {
|
||||
let node = this._cameraNode;
|
||||
let canvas = this.canvas;
|
||||
let scaleX = cc.view.getScaleX();
|
||||
|
||||
Reference in New Issue
Block a user