mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
fix codes only for native
This commit is contained in:
@@ -64,8 +64,7 @@ module.exports = {
|
||||
this.Texture2D = renderEngine.Texture2D;
|
||||
|
||||
this.canvas = canvas;
|
||||
// this.device = new renderEngine.Device(canvas, opts);
|
||||
this.device = window.device;
|
||||
this.device = new renderEngine.Device(canvas, opts);
|
||||
this.scene = new renderEngine.Scene();
|
||||
|
||||
this._walker = new RenderComponentWalker(this.device, this.scene);
|
||||
|
||||
Reference in New Issue
Block a user