Fix updates hillshade geometry (#2842)

This commit is contained in:
Tim Sylvester
2024-09-23 08:36:00 -07:00
committed by GitHub
parent cadb8d1da0
commit 84ca231da5
28 changed files with 307 additions and 156 deletions

View File

@@ -377,7 +377,8 @@ void RenderRasterLayer::update(gfx::ShaderRegistry& shaders,
assert(!!drawable ^ !!builder);
if (drawable) {
drawable->setVertexAttributes(vertexAttrs);
drawable->updateVertexAttributes(
vertexAttrs, vertices->elements(), gfx::Triangles(), indices, segments->data(), segments->size());
} else if (builder) {
builder->setVertexAttributes(vertexAttrs);
builder->setRawVertices({}, vertices->elements(), gfx::AttributeDataType::Short2);