Skip to content

Commit 5d84c39

Browse files
committed
Fix Update(), needs to call inherited Application::Update
1 parent 50de3fd commit 5d84c39

File tree

11 files changed

+16
-4
lines changed

11 files changed

+16
-4
lines changed

src/Cpp/1-getting-started/1-1-2-HelloD3D11/HelloD3D11Application.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ void HelloD3D11Application::OnResize(
157157

158158
void HelloD3D11Application::Update()
159159
{
160+
Application::Update();
160161
}
161162

162163
void HelloD3D11Application::Render()

src/Cpp/1-getting-started/1-1-3-HelloTriangle-Refactored/HelloTriangleApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ bool HelloTriangleApplication::Load()
153153
return true;
154154
}
155155

156-
157156
bool HelloTriangleApplication::CreateSwapchainResources()
158157
{
159158
WRL::ComPtr<ID3D11Texture2D> backBuffer = nullptr;
@@ -207,6 +206,7 @@ void HelloTriangleApplication::OnResize(
207206

208207
void HelloTriangleApplication::Update()
209208
{
209+
Application::Update();
210210
}
211211

212212
void HelloTriangleApplication::Render()

src/Cpp/1-getting-started/1-1-3-HelloTriangle/HelloTriangleApplication.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ void HelloTriangleApplication::OnResize(
316316

317317
void HelloTriangleApplication::Update()
318318
{
319+
Application::Update();
319320
}
320321

321322
void HelloTriangleApplication::Render()

src/Cpp/1-getting-started/1-2-2-DebugLayer/DebugLayerApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ bool DebugLayerApplication::Load()
165165
return true;
166166
}
167167

168-
169168
bool DebugLayerApplication::CreateSwapchainResources()
170169
{
171170
WRL::ComPtr<ID3D11Texture2D> backBuffer = nullptr;
@@ -219,6 +218,7 @@ void DebugLayerApplication::OnResize(
219218

220219
void DebugLayerApplication::Update()
221220
{
221+
Application::Update();
222222
}
223223

224224
void DebugLayerApplication::Render()

src/Cpp/1-getting-started/1-2-3-NamingThings/NamingThingsApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ bool NamingThingsApplication::Load()
176176
return true;
177177
}
178178

179-
180179
bool NamingThingsApplication::CreateSwapchainResources()
181180
{
182181
WRL::ComPtr<ID3D11Texture2D> backBuffer = nullptr;
@@ -230,6 +229,7 @@ void NamingThingsApplication::OnResize(
230229

231230
void NamingThingsApplication::Update()
232231
{
232+
Application::Update();
233233
}
234234

235235
void NamingThingsApplication::Render()

src/Cpp/1-getting-started/1-3-1-ImageLibrary/ImageLibraryApplication.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ void ImageLibraryApplication::OnResize(
279279

280280
void ImageLibraryApplication::Update()
281281
{
282+
Application::Update();
282283
}
283284

284285
void ImageLibraryApplication::Render()

src/Cpp/1-getting-started/1-3-2-LoadingMeshes-Refactored/LoadingMeshesApplication.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ bool LoadingMeshesApplication::Load()
223223
return true;
224224
}
225225

226-
227226
bool LoadingMeshesApplication::CreateSwapchainResources()
228227
{
229228
WRL::ComPtr<ID3D11Texture2D> backBuffer = nullptr;
@@ -284,6 +283,8 @@ void LoadingMeshesApplication::OnResize(
284283

285284
void LoadingMeshesApplication::Update()
286285
{
286+
Application::Update();
287+
287288
const auto eyePosition = DirectX::XMVectorSet(0.0f, 50.0f, 200.0f, 1.0f);
288289
const auto focusPoint = DirectX::XMVectorSet(0.0f, 0.0f, 0.0f, 1.0f);
289290
const auto upDirection = DirectX::XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);

src/Cpp/1-getting-started/1-3-2-LoadingMeshes/LoadingMeshesApplication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ void LoadingMeshesApplication::OnResize(
285285

286286
void LoadingMeshesApplication::Update()
287287
{
288+
Application::Update();
289+
288290
const auto eyePosition = DirectX::XMVectorSet(0.0f, 50.0f, 200.0f, 1.0f);
289291
const auto focusPoint = DirectX::XMVectorSet(0.0f, 0.0f, 0.0f, 1.0f);
290292
const auto upDirection = DirectX::XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);

src/Cpp/1-getting-started/1-3-3-DearImGui/DearImGuiApplication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ void DearImGuiApplication::OnResize(
295295

296296
void DearImGuiApplication::Update()
297297
{
298+
Application::Update();
299+
298300
const auto eyePosition = DirectX::XMVectorSet(0.0f, 50.0f, 200.0f, 1.0f);
299301
const auto focusPoint = DirectX::XMVectorSet(0.0f, 0.0f, 0.0f, 1.0f);
300302
const auto upDirection = DirectX::XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);

src/Cpp/1-getting-started/1-3-4-DepthBuffer/DepthBufferApplication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ void DepthBufferApplication::OnResize(
343343

344344
void DepthBufferApplication::Update()
345345
{
346+
Application::Update();
347+
346348
const auto eyePosition = DirectX::XMVectorSet(0.0f, 50.0f, 200, 1.0f);
347349
const auto focusPoint = DirectX::XMVectorSet(0.0f, 0.0f, 0.0f, 1.0f);
348350
const auto upDirection = DirectX::XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);

0 commit comments

Comments
 (0)