| 779 | } |
| 780 | |
| 781 | void deinit_hook() { |
| 782 | recompui::destroy_all_contexts(); |
| 783 | |
| 784 | std::lock_guard lock {ui_state_mutex}; |
| 785 | Rml::Debugger::Shutdown(); |
| 786 | Rml::Shutdown(); |
| 787 | ui_state->unload(); |
| 788 | ui_state.reset(); |
| 789 | } |
| 790 | |
| 791 | void recompui::set_render_hooks() { |
| 792 | RT64::SetRenderHooks(init_hook, draw_hook, deinit_hook); |