diff -r ee5758ddb6d2 -r 8e1fe64ce4e3 src/gl/vertexprogram.cpp --- a/src/gl/vertexprogram.cpp Sat Jun 11 15:20:24 2022 +0300 +++ b/src/gl/vertexprogram.cpp Sun Jun 12 20:47:04 2022 +0300 @@ -120,12 +120,12 @@ this->fragmentStyle = newFragmentStyle; } -void VertexProgram::build(const EditorTabWidget *document) +void VertexProgram::build(const VertexMap* vertexMap) { constexpr glm::vec3 color = {0.0, 1.0, 1.0}; this->data.clear(); const std::vector sphere = ::sphere(8 / 2); - document->applyToVertices([&](const glm::vec3&, const VertexMap::VertexInfo& info) + vertexMap->apply([&](const glm::vec3&, const VertexMap::VertexInfo& info) { reserveMore(this->data, sphere.size()); for (const glm::vec3& point : sphere)