mirror of https://github.com/doitsujin/dxvk
[d3d11] Fix bad check in DrawInstancedIndirect (#863)
This commit is contained in:
parent
109300d541
commit
cc38412d04
|
@ -1439,7 +1439,7 @@ namespace dxvk {
|
|||
constexpr VkDeviceSize stride = sizeof(VkDrawIndirectCommand);
|
||||
auto cmdData = static_cast<D3D11CmdDrawIndirectData*>(m_cmdData);
|
||||
|
||||
bool useMultiDraw = cmdData && cmdData->type == D3D11CmdType::DrawIndirectIndexed
|
||||
bool useMultiDraw = cmdData && cmdData->type == D3D11CmdType::DrawIndirect
|
||||
&& cmdData->offset + cmdData->count * stride == AlignedByteOffsetForArgs
|
||||
&& m_device->features().core.features.multiDrawIndirect;
|
||||
|
||||
|
|
Loading…
Reference in New Issue