Shared attributes (#1898)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user