[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();
|
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;
|
bool exiting = false;
|
||||||
emulator_window->loop()->on_quit.AddListener([&](ui::UIEvent* e) {
|
emulator_window->loop()->on_quit.AddListener([&](ui::UIEvent* e) {
|
||||||
exiting = true;
|
exiting = true;
|
||||||
evt->Set();
|
evt->Set();
|
||||||
|
|
||||||
// TODO(DrChat): Remove this code and do a proper exit.
|
// TODO(DrChat): Remove this code and do a proper exit.
|
||||||
Profiler::Shutdown();
|
|
||||||
XELOGI("Cheap-skate exit!");
|
XELOGI("Cheap-skate exit!");
|
||||||
exit(0);
|
exit(0);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue