浏览代码

minor fix

Nicolas Cannasse 4 年之前
父节点
当前提交
f7e5e23c30
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hide/comp/Scene.hx

+ 1 - 0
hide/comp/Scene.hx

@@ -124,6 +124,7 @@ class Scene extends Component implements h3d.IDrawable {
 		engine.backgroundColor = 0xFF111111;
 		canvas.id = null;
 		engine.onReady = function() {
+			if( engine.driver == null ) return;
 			new Element(canvas).on("resize", function() {
 				@:privateAccess window.checkResize();
 			});