Get rid of the exit(0) at the end of android_main() function
After NDK r22 it longer crashes after dlclose, see: https://github.com/android/ndk/issues/1200 Fix #3000
This commit is contained in:
parent
75db65d43a
commit
3d575a50a7
@ -94,15 +94,7 @@ extern "C" int SDL_main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
registering_natives();
|
registering_natives();
|
||||||
override_default_params_for_mobile();
|
override_default_params_for_mobile();
|
||||||
int result = android_main(argc, argv);
|
return android_main(argc, argv);
|
||||||
// TODO: Irrlicht device is properly waiting for destroy event, but
|
|
||||||
// some global variables are not initialized/cleared in functions and thus
|
|
||||||
// its state is remembered when the window is restored. We will use exit
|
|
||||||
// call to make sure that all variables are cleared until a proper fix will
|
|
||||||
// be done.
|
|
||||||
fflush(NULL);
|
|
||||||
_exit(0);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user