summaryrefslogtreecommitdiffstats
path: root/Imgui/src/ImGuiImplDiligent.cpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-26 19:17:07 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-26 19:17:07 +0000
commit707e9c63ce9af2801ff38ce0476570ca92048268 (patch)
tree91a316f2d32c0490b8f5d76d0a8beee7d0275971 /Imgui/src/ImGuiImplDiligent.cpp
parentWin32 app: updated golden image handling to render two frames to get GUI rend... (diff)
downloadDiligentTools-707e9c63ce9af2801ff38ce0476570ca92048268.tar.gz
DiligentTools-707e9c63ce9af2801ff38ce0476570ca92048268.zip
ImGuiImplDiligent: added EndFrame method
Diffstat (limited to 'Imgui/src/ImGuiImplDiligent.cpp')
-rw-r--r--Imgui/src/ImGuiImplDiligent.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Imgui/src/ImGuiImplDiligent.cpp b/Imgui/src/ImGuiImplDiligent.cpp
index 03e3e76..67b50ba 100644
--- a/Imgui/src/ImGuiImplDiligent.cpp
+++ b/Imgui/src/ImGuiImplDiligent.cpp
@@ -446,8 +446,14 @@ void ImGuiImplDiligent::NewFrame()
ImGui::NewFrame();
}
+void ImGuiImplDiligent::EndFrame()
+{
+ ImGui::EndFrame();
+}
+
void ImGuiImplDiligent::Render(IDeviceContext* pCtx)
{
+ // No need to call ImGui::EndFrame as ImGui::Render calls it automatically
ImGui::Render();
m_pImpl->RenderDrawData(pCtx, ImGui::GetDrawData());
}