Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
WinRT: took out an unneeded depth stencil view from the D3D 11.1 rend…
Browse files Browse the repository at this point in the history
…erer
  • Loading branch information
DavidLudwig committed Feb 16, 2013
1 parent 177aa98 commit 92c2fd9
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/render/direct3d11/SDL_render_d3d11.cpp
Expand Up @@ -672,27 +672,6 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
return result;
}

// Create a depth stencil view.
CD3D11_TEXTURE2D_DESC depthStencilDesc(
DXGI_FORMAT_D24_UNORM_S8_UINT,
static_cast<UINT>(data->renderTargetSize.x),
static_cast<UINT>(data->renderTargetSize.y),
1,
1,
D3D11_BIND_DEPTH_STENCIL
);

ComPtr<ID3D11Texture2D> depthStencil;
result = data->d3dDevice->CreateTexture2D(
&depthStencilDesc,
nullptr,
&depthStencil
);
if (FAILED(result)) {
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
return result;
}

// Set the rendering viewport to target the entire window.
CD3D11_VIEWPORT viewport(
0.0f,
Expand Down

0 comments on commit 92c2fd9

Please sign in to comment.