fixed crw devices bug

This commit is contained in:
fusijie
2018-02-28 16:29:38 +08:00
parent 3afc6d3c44
commit 2a8d726a19
@@ -62,11 +62,11 @@ RenderComponentWalker.prototype = {
let cam = this._camera;
ctx.setTransform(cam.a, cam.b, cam.c, cam.d, cam.tx, cam.ty);
let drawCall = renderer(ctx, comp);
this.device._stats.drawcalls += drawCall;
this._device._stats.drawcalls += drawCall;
},
visit (scene) {
this.device._stats.drawcalls = 0;
this._device._stats.drawcalls = 0;
scene.walk(this._handleRender, this._postHandleRender);
}
}