Browse Source

Set stride to 0 when calculating offsets

master
Riyyi 4 years ago
parent
commit
ec2cb44c06
  1. 1
      inferno/src/inferno/render/buffer.cpp

1
inferno/src/inferno/render/buffer.cpp

@ -150,6 +150,7 @@ namespace Inferno {
void BufferLayout::calculateOffsetsAndStride() void BufferLayout::calculateOffsetsAndStride()
{ {
m_stride = 0;
for (auto& element : m_elements) { for (auto& element : m_elements) {
element.setOffset(m_stride); element.setOffset(m_stride);
m_stride += element.getSize(); m_stride += element.getSize();

Loading…
Cancel
Save