updated library

This commit is contained in:
Lauchmelder 2021-12-27 15:43:03 +01:00
parent b6b5bce4f2
commit 473de1f5c5
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ Topology::Topology(lol::ObjectManager& manager, const glm::vec2& size, const glm
}
}
std::shared_ptr<lol::VertexBuffer> vertexBuffer = std::make_shared<lol::VertexBuffer>(vertices.size(), vertices);
std::shared_ptr<lol::VertexBuffer> vertexBuffer = std::make_shared<lol::VertexBuffer>(vertices);
vertexBuffer->SetLayout(
{
{ lol::Type::Float, 2, false },
@ -46,7 +46,7 @@ Topology::Topology(lol::ObjectManager& manager, const glm::vec2& size, const glm
}
);
std::shared_ptr<lol::ElementBuffer> elementBuffer = std::make_shared<lol::ElementBuffer>(indices.size(), indices);
std::shared_ptr<lol::ElementBuffer> elementBuffer = std::make_shared<lol::ElementBuffer>(indices);
vao->SetVertexBuffer(vertexBuffer);
vao->SetElementBuffer(elementBuffer);

2
vendor/lol vendored

@ -1 +1 @@
Subproject commit e80cfee1fee47a44ee61139dea8f6dd062d7cc5c
Subproject commit 9306dbaae70b7b915e723ab9a084118f5a969bdf