fix profiler init proc (#6009)

This commit is contained in:
Yun Hsiao Wu
2019-12-31 09:59:00 +08:00
committed by pandamicro
parent f9f7171c4c
commit 6f37ef31a9
+1 -2
View File
@@ -223,7 +223,6 @@ export class Profiler {
}
this._stats = null;
this._inited = false;
const now = performance.now();
this._ctx.textAlign = 'left';
@@ -257,7 +256,6 @@ export class Profiler {
this._stats = _profileInfo as IProfilerState;
this._canvasArr[0] = this._canvas;
this.updateTexture();
this._inited = true;
}
public generateNode () {
@@ -341,6 +339,7 @@ export class Profiler {
this.digitsData = pass.blocks[binding];
modelCom.material = _material;
modelCom.node.layer = Layers.Enum.PROFILER;
this._inited = true;
}
public beforeUpdate () {