Ignore NumRTVs = 0xfffffff (D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL)

This commit is contained in:
baldurk
2016-05-08 19:06:47 +02:00
parent e65af430c5
commit 3ba4ea4cd1
+2
View File
@@ -1705,6 +1705,8 @@ void WrappedID3D11DeviceContext::RecordOutputMergerStats(UINT NumRTVs, ID3D11Ren
}
UINT NumSlots = NumRTVs + NumUAVs;
if(NumRTVs == D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL)
NumSlots = NumUAVs;
RDCASSERT(NumSlots < outputs.bindslots.size());
outputs.bindslots[NumSlots] += 1;
}