소스 검색

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;
 		engine.backgroundColor = 0xFF111111;
 		canvas.id = null;
 		canvas.id = null;
 		engine.onReady = function() {
 		engine.onReady = function() {
+			if( engine.driver == null ) return;
 			new Element(canvas).on("resize", function() {
 			new Element(canvas).on("resize", function() {
 				@:privateAccess window.checkResize();
 				@:privateAccess window.checkResize();
 			});
 			});