android: native: Change order of EmuWindow teardown.
- This needs to happen after system shutdown for asynchronous GPU.
This commit is contained in:
parent
6f48d54807
commit
01a505f025
@ -123,6 +123,9 @@ static Core::System::ResultStatus RunCitra(const std::string& filepath) {
|
|||||||
return Core::System::ResultStatus::ErrorLoader;
|
return Core::System::ResultStatus::ErrorLoader;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window = std::make_unique<EmuWindow_Android>(s_surf);
|
||||||
|
SCOPE_EXIT({ window.reset(); });
|
||||||
|
|
||||||
Core::System& system{Core::System::GetInstance()};
|
Core::System& system{Core::System::GetInstance()};
|
||||||
SCOPE_EXIT({ system.Shutdown(); });
|
SCOPE_EXIT({ system.Shutdown(); });
|
||||||
|
|
||||||
@ -139,9 +142,6 @@ static Core::System::ResultStatus RunCitra(const std::string& filepath) {
|
|||||||
InputManager::Init();
|
InputManager::Init();
|
||||||
SCOPE_EXIT({ InputManager::Shutdown(); });
|
SCOPE_EXIT({ InputManager::Shutdown(); });
|
||||||
|
|
||||||
window = std::make_unique<EmuWindow_Android>(s_surf);
|
|
||||||
SCOPE_EXIT({ window.reset(); });
|
|
||||||
|
|
||||||
const Core::System::ResultStatus load_result{system.Load(*window, filepath)};
|
const Core::System::ResultStatus load_result{system.Load(*window, filepath)};
|
||||||
if (load_result != Core::System::ResultStatus::Success) {
|
if (load_result != Core::System::ResultStatus::Success) {
|
||||||
return load_result;
|
return load_result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user