Merge pull request #2402 from pandamicro/next

Avoid editor report issue when init renderer before canvas init
This commit is contained in:
pandamicro
2018-03-06 15:47:25 +08:00
committed by GitHub
+1 -1
View File
@@ -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();