[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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user