Nicolas Cannasse 4 vuotta sitten
vanhempi
commit
f7e5e23c30
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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();
 			});