Fix check for skipping invalid root signature elements

This commit is contained in:
baldurk
2016-11-16 18:04:30 +01:00
parent 1db06dfd43
commit 12dbff9adf
+1 -1
View File
@@ -211,7 +211,7 @@ void D3D12RenderState::ApplyState(ID3D12GraphicsCommandList *cmd)
{
// just don't set tables that aren't in the descriptor heaps, since it's invalid and can crash
// and is probably just from stale bindings that aren't going to be used
if(graphics.sigelems[i].type == eRootTable ||
if(graphics.sigelems[i].type != eRootTable ||
std::find(heaps.begin(), heaps.end(), graphics.sigelems[i].id) != heaps.end())
{
graphics.sigelems[i].SetToGraphics(GetResourceManager(), cmd, (UINT)i);