D3D12: Fix SetDescriptorHeap when we only have a sampler heap
This commit is contained in:
parent
a430a9a0aa
commit
27388434d6
|
@ -259,7 +259,7 @@ namespace backend { namespace d3d12 {
|
||||||
} else if (descriptorHeaps[0]) {
|
} else if (descriptorHeaps[0]) {
|
||||||
commandList->SetDescriptorHeaps(1, descriptorHeaps);
|
commandList->SetDescriptorHeaps(1, descriptorHeaps);
|
||||||
} else if (descriptorHeaps[1]) {
|
} else if (descriptorHeaps[1]) {
|
||||||
commandList->SetDescriptorHeaps(2, &descriptorHeaps[1]);
|
commandList->SetDescriptorHeaps(1, &descriptorHeaps[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue