mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
VideoCommon: Initialize editor in ui....
This commit is contained in:
parent
2225549334
commit
53b4e989ce
1 changed files with 8 additions and 0 deletions
|
@ -104,11 +104,19 @@ bool OnScreenUI::Initialize(u32 width, u32 height, float scale)
|
|||
m_ready = true;
|
||||
BeginImGuiFrameUnlocked(width, height); // lock is already held
|
||||
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& graphics_mod_editor = system.GetGraphicsModEditor();
|
||||
graphics_mod_editor.Initialize();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
OnScreenUI::~OnScreenUI()
|
||||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& graphics_mod_editor = system.GetGraphicsModEditor();
|
||||
graphics_mod_editor.Shutdown();
|
||||
|
||||
std::unique_lock<std::mutex> imgui_lock(m_imgui_mutex);
|
||||
|
||||
ImGui::EndFrame();
|
||||
|
|
Loading…
Add table
Reference in a new issue