[Impeller] Fix bug where the intermediary root pass is getting created even when nothing reads from it (flutter/engine#35661)

This commit is contained in:
Brandon DeRosier
2022-08-23 23:09:21 -07:00
committed by GitHub
parent a05fa3e7d7
commit 435fb97fd6

View File

@@ -531,7 +531,7 @@ void EntityPass::SetBlendMode(Entity::BlendMode blend_mode) {
void EntityPass::SetBackdropFilter(std::optional<BackdropFilterProc> proc) {
backdrop_filter_proc_ = proc;
if (superpass_) {
if (proc.has_value() && superpass_) {
superpass_->reads_from_pass_texture_ = true;
}
}