Skip to content

Commit d6e8ad3

Browse files
ImGuiImpl: release renderer resources before destroying imgui context
1 parent 071ced0 commit d6e8ad3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Imgui/src/ImGuiImplDiligent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2023 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -63,6 +63,7 @@ ImGuiImplDiligent::ImGuiImplDiligent(const ImGuiDiligentCreateInfo& CI)
6363

6464
ImGuiImplDiligent::~ImGuiImplDiligent()
6565
{
66+
m_pRenderer->InvalidateDeviceObjects();
6667
ImGui::DestroyContext();
6768
}
6869

0 commit comments

Comments
 (0)