Handle the case where styles update without a bucket change, fixing `… (#1874)

This commit is contained in:
Tim Sylvester
2023-11-17 09:44:00 -08:00
committed by GitHub
parent b01c6270d4
commit 4150c8b851
9 changed files with 97 additions and 62 deletions

View File

@@ -518,7 +518,7 @@ void RenderFillLayer::update(gfx::ShaderRegistry& shaders,
auto updateExisting = [&](gfx::Drawable& drawable) {
if (drawable.getLayerTweaker() != layerTweaker) {
// This drawable was produced on a previous style/bucket, and should not be updated.
return;
return false;
}
auto& uniforms = drawable.mutableUniformBuffers();
@@ -539,8 +539,9 @@ void RenderFillLayer::update(gfx::ShaderRegistry& shaders,
}
drawable.setVertexAttributes(vertexAttrs);
return true;
};
if (0 < tileLayerGroup->visitDrawables(renderPass, tileID, std::move(updateExisting))) {
if (updateTile(renderPass, tileID, std::move(updateExisting))) {
continue;
}