mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[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);
|
constexpr VkDeviceSize stride = sizeof(VkDrawIndirectCommand);
|
||||||
auto cmdData = static_cast<D3D11CmdDrawIndirectData*>(m_cmdData);
|
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
|
&& cmdData->offset + cmdData->count * stride == AlignedByteOffsetForArgs
|
||||||
&& m_device->features().core.features.multiDrawIndirect;
|
&& m_device->features().core.features.multiDrawIndirect;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user