Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
efc2dbc89d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      hxd/App.hx

+ 3 - 3
hxd/App.hx

@@ -151,9 +151,9 @@ class App implements h3d.IDrawable {
 		engine.onResized = staticHandler;
 		engine.onContextLost = staticHandler;
 		isDisposed = true;
-		s2d.dispose();
-		s3d.dispose();
-		sevents.dispose();
+		if( s2d != null ) s2d.dispose();
+		if( s3d != null ) s3d.dispose();
+		if( sevents != null ) sevents.dispose();
 	}
 
 	/**