Nicolas Cannasse 4 ani în urmă
părinte
comite
efc2dbc89d
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  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();
 	}
 
 	/**