Skip to content

Commit 136ebbd

Browse files
author
Floyd Huizinga
committed
change DXGI to D3D11 in some error handling code
1 parent 9cd787a commit 136ebbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cpp/1-getting-started/1-3-4-3DRendering/3DRenderingApplication.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void Rendering3DApplication::CreateDepthStencilView()
161161
ID3D11Texture2D* texture = nullptr;
162162
if (FAILED(_device->CreateTexture2D(&texDesc, nullptr, &texture)))
163163
{
164-
std::cout << "DXGI: Failed to create texture for DepthStencilView\n";
164+
std::cout << "D3D11: Failed to create texture for DepthStencilView\n";
165165
return;
166166
}
167167

@@ -170,7 +170,7 @@ void Rendering3DApplication::CreateDepthStencilView()
170170
dsvDesc.ViewDimension = D3D11_DSV_DIMENSION_TEXTURE2D;
171171
if(FAILED(_device->CreateDepthStencilView(texture, &dsvDesc, &_depthTarget)))
172172
{
173-
std::cout << "DXGI: Failed to create DepthStencilView\n";
173+
std::cout << "D3D11: Failed to create DepthStencilView\n";
174174
texture->Release();
175175
return;
176176
}

0 commit comments

Comments
 (0)