Nicolas Cannasse 6 years ago
parent
commit
ed3f91a41a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/comp/Scene.hx

+ 1 - 1
hide/comp/Scene.hx

@@ -101,7 +101,7 @@ class Scene extends Component implements h3d.IDrawable {
 		window = @:privateAccess new hxd.Window(canvas);
 		window = @:privateAccess new hxd.Window(canvas);
 		window.propagateKeyEvents = true;
 		window.propagateKeyEvents = true;
 		window.setCurrent();
 		window.setCurrent();
-		engine = new h3d.Engine();
+		engine = @:privateAccess new h3d.Engine();
 		@:privateAccess engine.resCache.set(Scene, this);
 		@:privateAccess engine.resCache.set(Scene, this);
 		engine.backgroundColor = 0xFF111111;
 		engine.backgroundColor = 0xFF111111;
 		canvas.id = null;
 		canvas.id = null;