Fix error in D3D11DebugManager::CopyArrayToTex2DMS

* There was an error in case of depth copy. Before the first draw only
  registers t1-t9 are cleared, but shader also expects 2D Array SRVs on t11
This commit is contained in:
ruslan_kutdusov
2019-06-03 13:33:53 +05:00
committed by Baldur Karlsson
parent 5291a9c19d
commit e8e3972953
@@ -374,10 +374,10 @@ void D3D11DebugManager::CopyArrayToTex2DMS(ID3D11Texture2D *destMS, ID3D11Textur
return;
}
ID3D11ShaderResourceView *srvs[8] = {NULL};
ID3D11ShaderResourceView *srvs[10] = {NULL};
srvs[0] = srvArray;
m_pImmediateContext->PSSetShaderResources(1, 8, srvs);
m_pImmediateContext->PSSetShaderResources(1, 10, srvs);
// loop over every array slice in MS texture
for(UINT slice = 0; slice < descMS.ArraySize; slice++)