[Impeller] Safely access snapshot in the pipeline blend filter (flutter/engine#42314)

Spotted by @zanderso.
This commit is contained in:
Brandon DeRosier
2023-05-25 09:32:23 -07:00
committed by GitHub
parent 273bb77b61
commit be73e88f17

View File

@@ -484,6 +484,9 @@ static std::optional<Entity> PipelineBlend(
auto dst_snapshot =
inputs[0]->GetSnapshot("PipelineBlend(Dst)", renderer, entity);
if (!dst_snapshot.has_value()) {
return std::nullopt;
}
ContentContext::SubpassCallback callback = [&](const ContentContext& renderer,
RenderPass& pass) {