Viewport: Removed unnecessary function hoop.

This commit is contained in:
omar 2018-03-12 23:11:53 +01:00
parent 8657201257
commit 6371474031

View File

@ -3514,12 +3514,14 @@ static void UpdatePlatformWindows()
}
}
static void RenderPlatformWindows()
void ImGui::RenderAdditionalViewports()
{
// Render
ImGuiContext& g = *GImGui;
ImVec2 backup_display_pos = g.IO.DisplayPos;
ImVec2 backup_display_size = g.IO.DisplaySize;
if (!(g.IO.ConfigFlags & ImGuiConfigFlags_EnableViewports))
return;
for (int i = 0; i < g.Viewports.Size; i++)
{
ImGuiViewport* viewport = g.Viewports[i];
@ -4452,13 +4454,6 @@ void ImGui::Render()
#endif
}
void ImGui::RenderAdditionalViewports()
{
ImGuiContext& g = *GImGui;
if (g.IO.ConfigFlags & ImGuiConfigFlags_EnableViewports)
RenderPlatformWindows();
}
ImGuiViewport* ImGui::FindViewportByID(ImGuiID id)
{
ImGuiContext& g = *GImGui;