Bind Win32 app shell and move more legacy platform state
This commit is contained in:
@@ -46,13 +46,17 @@ void request_window_close(HWND hWnd)
|
||||
|
||||
void handle_window_close_message(VrShellState& vr)
|
||||
{
|
||||
auto* app = bound_app();
|
||||
auto* runtime = bound_runtime();
|
||||
mark_lifecycle_stopped();
|
||||
request_stop_and_join_vr_thread(vr);
|
||||
App::I->runtime().ui_thread_stop();
|
||||
App::I->runtime().render_thread_stop();
|
||||
App::I->terminate();
|
||||
runtime->ui_thread_stop();
|
||||
runtime->render_thread_stop();
|
||||
app->terminate();
|
||||
App::I = nullptr;
|
||||
bind_app(nullptr);
|
||||
bind_runtime(nullptr);
|
||||
delete App::I;
|
||||
delete app;
|
||||
PostQuitMessage(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user