Skip to content

Commit 35f0a88

Browse files
committed
Fix indentation on some code elements
1 parent 2577dbf commit 35f0a88

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/1-introduction/1-1-getting-started/1-1-2-hello-d3d11.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,16 @@ DXGI 1.0 up to 1.6 More information can be found [here](https://docs.microsoft.c
234234
```cpp
235235
constexpr D3D_FEATURE_LEVEL deviceFeatureLevel = D3D_FEATURE_LEVEL::D3D_FEATURE_LEVEL_11_0;
236236
if (FAILED(D3D11CreateDevice(
237-
nullptr,
238-
D3D_DRIVER_TYPE::D3D_DRIVER_TYPE_HARDWARE,
239-
nullptr,
240-
0,
241-
&deviceFeatureLevel,
242-
1,
243-
D3D11_SDK_VERSION,
244-
&_device,
245-
nullptr,
246-
&_deviceContext)))
237+
nullptr,
238+
D3D_DRIVER_TYPE::D3D_DRIVER_TYPE_HARDWARE,
239+
nullptr,
240+
0,
241+
&deviceFeatureLevel,
242+
1,
243+
D3D11_SDK_VERSION,
244+
&_device,
245+
nullptr,
246+
&_deviceContext)))
247247
{
248248
std::cout << "D3D11: Failed to create device and device Context\n";
249249
return false;
@@ -274,12 +274,12 @@ DXGI_SWAP_CHAIN_FULLSCREEN_DESC swapChainFullscreenDescriptor = {};
274274
swapChainFullscreenDescriptor.Windowed = true;
275275

276276
if (FAILED(_dxgiFactory->CreateSwapChainForHwnd(
277-
_device.Get(),
278-
glfwGetWin32Window(GetWindow()),
279-
&swapChainDescriptor,
280-
&swapChainFullscreenDescriptor,
281-
nullptr,
282-
&_swapChain)))
277+
_device.Get(),
278+
glfwGetWin32Window(GetWindow()),
279+
&swapChainDescriptor,
280+
&swapChainFullscreenDescriptor,
281+
nullptr,
282+
&_swapChain)))
283283
{
284284
std::cout << "DXGI: Failed to create swapchain\n";
285285
return false;

0 commit comments

Comments
 (0)