Examples: Tweaks formatting.

This commit is contained in:
omar 2018-01-30 23:55:23 +01:00
parent bebe03db05
commit 955d86199f
2 changed files with 28 additions and 32 deletions

View File

@ -39,7 +39,6 @@ HRESULT CreateDeviceD3D(HWND hWnd)
{
// Setup swap chain
DXGI_SWAP_CHAIN_DESC sd;
{
ZeroMemory(&sd, sizeof(sd));
sd.BufferCount = 2;
sd.BufferDesc.Width = 0;
@ -54,7 +53,6 @@ HRESULT CreateDeviceD3D(HWND hWnd)
sd.SampleDesc.Quality = 0;
sd.Windowed = TRUE;
sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
}
UINT createDeviceFlags = 0;
//createDeviceFlags |= D3D10_CREATE_DEVICE_DEBUG;

View File

@ -39,7 +39,6 @@ HRESULT CreateDeviceD3D(HWND hWnd)
{
// Setup swap chain
DXGI_SWAP_CHAIN_DESC sd;
{
ZeroMemory(&sd, sizeof(sd));
sd.BufferCount = 2;
sd.BufferDesc.Width = 0;
@ -54,7 +53,6 @@ HRESULT CreateDeviceD3D(HWND hWnd)
sd.SampleDesc.Quality = 0;
sd.Windowed = TRUE;
sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
}
UINT createDeviceFlags = 0;
//createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG;