Fix check for over-sized depthtargets with rendertargets

* Was causing some valid output mergers to not be tracked correctly.
This commit is contained in:
baldurk
2015-03-13 11:29:42 +00:00
parent c962fbb043
commit 0aa5dc2e66
+3 -3
View File
@@ -1443,9 +1443,9 @@ bool D3D11RenderState::ValidOutputMerger(ID3D11RenderTargetView **RTs, ID3D11Dep
valid = false;
// explicitly allow over-sized depth targets
if(desc.Width < d3.Width &&
desc.Height < d3.Height &&
desc.Depth < d3.Depth &&
if(desc.Width <= d3.Width &&
desc.Height <= d3.Height &&
desc.Depth <= d3.Depth &&
desc2.SampleDesc.Count == d2.SampleDesc.Count &&
desc2.SampleDesc.Quality == d2.SampleDesc.Quality)
{