WinRT: took out an unneeded depth stencil view from the D3D 11.1 renderer
This commit is contained in:
parent
c895496828
commit
a6c8d32843
1 changed files with 0 additions and 21 deletions
|
@ -672,27 +672,6 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
|
||||||
return result;
|
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.
|
// Set the rendering viewport to target the entire window.
|
||||||
CD3D11_VIEWPORT viewport(
|
CD3D11_VIEWPORT viewport(
|
||||||
0.0f,
|
0.0f,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue