SDL: Move imgui render to display

Fixes crash on renderer switch.
This commit is contained in:
Connor McLaughlin
2020-02-23 00:04:30 +09:00
parent 49c7767ed4
commit bfdf343dfe
3 changed files with 2 additions and 3 deletions

View File

@ -360,6 +360,7 @@ void OpenGLHostDisplay::Render()
SDL_GL_SwapWindow(m_window);
ImGui::NewFrame();
ImGui_ImplSDL2_NewFrame(m_window);
ImGui_ImplOpenGL3_NewFrame();