Browse Source

Remove move where it didnt make sense

master
Riyyi 4 years ago
parent
commit
f63bd4ab6d
  1. 4
      inferno/src/inferno/render/renderer.cpp

4
inferno/src/inferno/render/renderer.cpp

@ -195,7 +195,7 @@ namespace Inferno {
{ BufferElementType::Vec2, "a_textureCoordinates" }, { BufferElementType::Vec2, "a_textureCoordinates" },
{ BufferElementType::Float, "a_textureIndex" }, { BufferElementType::Float, "a_textureIndex" },
}); });
m_vertexArray->addVertexBuffer(std::move(vertexBuffer)); m_vertexArray->addVertexBuffer(vertexBuffer);
// Create index buffer // Create index buffer
auto indexBuffer = std::make_shared<IndexBuffer>(indices, sizeof(uint32_t) * indexCount); auto indexBuffer = std::make_shared<IndexBuffer>(indices, sizeof(uint32_t) * indexCount);
@ -346,7 +346,7 @@ namespace Inferno {
{ BufferElementType::Vec4, "a_borderColor" }, { BufferElementType::Vec4, "a_borderColor" },
{ BufferElementType::Float, "a_offset" }, { BufferElementType::Float, "a_offset" },
}); });
m_vertexArray->addVertexBuffer(std::move(vertexBuffer)); m_vertexArray->addVertexBuffer(vertexBuffer);
// Create index buffer // Create index buffer
auto indexBuffer = std::make_shared<IndexBuffer>(indices, sizeof(uint32_t) * indexCount); auto indexBuffer = std::make_shared<IndexBuffer>(indices, sizeof(uint32_t) * indexCount);

Loading…
Cancel
Save