[UI] Shut down the profiler before the graphics context
This commit is contained in:
parent
2a52156edf
commit
a976056afb
|
@ -174,13 +174,17 @@ int xenia_main(const std::vector<std::wstring>& args) {
|
|||
evt->Set();
|
||||
});
|
||||
|
||||
emulator_window->window()->on_closing.AddListener([&](ui::UIEvent* e) {
|
||||
// This needs to shut down before the graphics context.
|
||||
Profiler::Shutdown();
|
||||
});
|
||||
|
||||
bool exiting = false;
|
||||
emulator_window->loop()->on_quit.AddListener([&](ui::UIEvent* e) {
|
||||
exiting = true;
|
||||
evt->Set();
|
||||
|
||||
// TODO(DrChat): Remove this code and do a proper exit.
|
||||
Profiler::Shutdown();
|
||||
XELOGI("Cheap-skate exit!");
|
||||
exit(0);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue