Create all proxy depth textures as depth-bindable and typeless

This commit is contained in:
baldurk
2016-07-13 16:49:30 +02:00
parent a7dc5f207f
commit edf553137c
+1 -1
View File
@@ -1657,7 +1657,7 @@ ResourceId D3D11Replay::CreateProxyTexture(const FetchTexture &templateTex)
desc.SampleDesc.Count = templateTex.msSamp;
desc.SampleDesc.Quality = templateTex.msQual;
if(templateTex.creationFlags & eTextureCreate_DSV)
if(templateTex.creationFlags & eTextureCreate_DSV || IsDepthFormat(desc.Format))
{
desc.BindFlags |= D3D11_BIND_DEPTH_STENCIL;
desc.Format = GetTypelessFormat(desc.Format);