mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-10-30 03:37:52 +00:00
Fix pause emulator button crashing the emulator
This commit is contained in:
parent
0a6bea8f0c
commit
14d0bb534e
1 changed files with 6 additions and 4 deletions
|
@ -316,10 +316,12 @@ void Java_io_github_lime3ds_android_NativeLibrary_surfaceChanged(JNIEnv* env,
|
||||||
|
|
||||||
void Java_io_github_lime3ds_android_NativeLibrary_surfaceDestroyed([[maybe_unused]] JNIEnv* env,
|
void Java_io_github_lime3ds_android_NativeLibrary_surfaceDestroyed([[maybe_unused]] JNIEnv* env,
|
||||||
[[maybe_unused]] jobject obj) {
|
[[maybe_unused]] jobject obj) {
|
||||||
ANativeWindow_release(s_surf);
|
if (s_surf != nullptr) {
|
||||||
s_surf = nullptr;
|
ANativeWindow_release(s_surf);
|
||||||
if (window) {
|
s_surf = nullptr;
|
||||||
window->OnSurfaceChanged(s_surf);
|
if (window) {
|
||||||
|
window->OnSurfaceChanged(s_surf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue