forked from 0ad/0ad
Fixes incorrect vertex buffer offset added in aba7a170d9
. Fixes #6519
This was SVN commit r26829.
This commit is contained in:
parent
7e44e7ae69
commit
069560a290
@ -203,7 +203,7 @@ void CParticleEmitter::RenderArray(
|
||||
m_IndexArray.UploadIfNeeded(deviceCommandContext);
|
||||
|
||||
const uint32_t stride = m_VertexArray.GetStride();
|
||||
const uint32_t firstVertexOffset = m_VertexArray.GetStride() * stride;
|
||||
const uint32_t firstVertexOffset = m_VertexArray.GetOffset() * stride;
|
||||
|
||||
deviceCommandContext->SetVertexAttributeFormat(
|
||||
Renderer::Backend::VertexAttributeStream::POSITION,
|
||||
|
Loading…
Reference in New Issue
Block a user