Shared attributes (#1898)

This commit is contained in:
Tim Sylvester
2023-11-28 18:57:51 -08:00
committed by GitHub
parent 5c86aee31a
commit fa9712cd8f
35 changed files with 290 additions and 346 deletions

View File

@@ -175,7 +175,7 @@ void TileSourceRenderItem::updateDebugDrawables(DebugLayerGroupMap& debugLayerGr
debugBuilder->setTexture(texture, samplerLocation.value());
// finish
debugBuilder->flush();
debugBuilder->flush(context);
for (auto& drawable : debugBuilder->clearDrawables()) {
drawable->setTileID(tileID);
auto& uniforms = drawable->mutableUniformBuffers();
@@ -282,7 +282,7 @@ void TileSourceRenderItem::updateDebugDrawables(DebugLayerGroupMap& debugLayerGr
auto tweaker = std::make_shared<PolylineDrawableTweaker>(linePropertiesUBO);
// finish
polylineBuilder->flush();
polylineBuilder->flush(context);
for (auto& drawable : polylineBuilder->clearDrawables()) {
drawable->setTileID(tile.getOverscaledTileID());
drawable->addTweaker(tweaker);