Fixed first instance in MDI call being wrong
This commit is contained in:
parent
a2311a473e
commit
d9582cd0bd
|
@ -270,7 +270,7 @@ namespace SHADE
|
||||||
.instanceCount = static_cast<uint32_t>(subBatch.Renderables.size()),
|
.instanceCount = static_cast<uint32_t>(subBatch.Renderables.size()),
|
||||||
.firstIndex = subBatch.Mesh->FirstIndex,
|
.firstIndex = subBatch.Mesh->FirstIndex,
|
||||||
.vertexOffset = subBatch.Mesh->FirstVertex,
|
.vertexOffset = subBatch.Mesh->FirstVertex,
|
||||||
.firstInstance = nextInstanceIndex
|
.firstInstance = nextInstanceIndex++
|
||||||
});
|
});
|
||||||
|
|
||||||
// Fill in buffers (CPU)
|
// Fill in buffers (CPU)
|
||||||
|
|
Loading…
Reference in New Issue