Skip to content

Commit d6fdfe9

Browse files
committed
Enable ImGui again
1 parent c7264ef commit d6fdfe9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Cpp/1-getting-started/1-3-6-Camera/CameraApplication.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ CameraApplication::~CameraApplication()
7575
#endif
7676
_device.Reset();
7777

78-
//ImGui_ImplGlfw_Shutdown();
79-
//ImGui::DestroyContext(_imGuiContext);
78+
ImGui_ImplGlfw_Shutdown();
79+
ImGui::DestroyContext(_imGuiContext);
8080

8181
Application::Cleanup();
8282
}
@@ -125,7 +125,7 @@ bool CameraApplication::Initialize()
125125
return false;
126126
}
127127

128-
//InitializeImGui();
128+
InitializeImGui();
129129

130130
constexpr char deviceName[] = "DEV_Main";
131131
_device->SetPrivateData(WKPDID_D3DDebugObjectName, sizeof(deviceName), deviceName);

src/Cpp/1-getting-started/1-3-6-Camera/DeviceContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ DeviceContext::DeviceContext(
99
WRL::ComPtr<ID3D11DeviceContext>&& deviceContext)
1010
{
1111
_deviceContext = std::move(deviceContext);
12-
//ImGui_ImplDX11_Init(device.Get(), _deviceContext.Get());
12+
ImGui_ImplDX11_Init(device.Get(), _deviceContext.Get());
1313
}
1414

1515
DeviceContext::~DeviceContext()
1616
{
17-
//ImGui_ImplDX11_Shutdown();
17+
ImGui_ImplDX11_Shutdown();
1818
}
1919

2020
void DeviceContext::Clear(

0 commit comments

Comments
 (0)