SDL: Move imgui render to display
Fixes crash on renderer switch.
This commit is contained in:
@ -360,6 +360,7 @@ void OpenGLHostDisplay::Render()
|
||||
|
||||
SDL_GL_SwapWindow(m_window);
|
||||
|
||||
ImGui::NewFrame();
|
||||
ImGui_ImplSDL2_NewFrame(m_window);
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user