@@ -434,12 +434,12 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
434
434
return EntityPass::EntityResult::Skip ();
435
435
}
436
436
437
- std::shared_ptr<Contents> backdrop_filter_contents = nullptr ;
437
+ std::shared_ptr<Contents> subpass_backdrop_filter_contents = nullptr ;
438
438
if (subpass->backdrop_filter_proc_ ) {
439
439
auto texture = pass_context.GetTexture ();
440
440
// Render the backdrop texture before any of the pass elements.
441
441
const auto & proc = subpass->backdrop_filter_proc_ ;
442
- backdrop_filter_contents =
442
+ subpass_backdrop_filter_contents =
443
443
proc (FilterInput::Make (std::move (texture)), subpass->xformation_ ,
444
444
/* is_subpass*/ true );
445
445
@@ -476,9 +476,10 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
476
476
return EntityPass::EntityResult::Skip ();
477
477
}
478
478
479
- auto subpass_coverage = (subpass->flood_clip_ || backdrop_filter_contents)
480
- ? coverage_limit
481
- : GetSubpassCoverage (*subpass, coverage_limit);
479
+ auto subpass_coverage =
480
+ (subpass->flood_clip_ || subpass_backdrop_filter_contents)
481
+ ? coverage_limit
482
+ : GetSubpassCoverage (*subpass, coverage_limit);
482
483
if (!subpass_coverage.has_value ()) {
483
484
return EntityPass::EntityResult::Skip ();
484
485
}
@@ -501,17 +502,18 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
501
502
502
503
// Stencil textures aren't shared between EntityPasses (as much of the
503
504
// time they are transient).
504
- if (!subpass->OnRender (renderer, // renderer
505
- root_pass_size, // root_pass_size
506
- subpass_target, // pass_target
507
- subpass_coverage->origin , // global_pass_position
508
- subpass_coverage->origin -
509
- global_pass_position, // local_pass_position
510
- ++pass_depth, // pass_depth
511
- stencil_coverage_stack, // stencil_coverage_stack
512
- subpass->stencil_depth_ , // stencil_depth_floor
513
- backdrop_filter_contents // backdrop_filter_contents
514
- )) {
505
+ if (!subpass->OnRender (
506
+ renderer, // renderer
507
+ root_pass_size, // root_pass_size
508
+ subpass_target, // pass_target
509
+ subpass_coverage->origin , // global_pass_position
510
+ subpass_coverage->origin -
511
+ global_pass_position, // local_pass_position
512
+ ++pass_depth, // pass_depth
513
+ stencil_coverage_stack, // stencil_coverage_stack
514
+ subpass->stencil_depth_ , // stencil_depth_floor
515
+ subpass_backdrop_filter_contents // backdrop_filter_contents
516
+ )) {
515
517
// Validation error messages are triggered for all `OnRender()` failure
516
518
// cases.
517
519
return EntityPass::EntityResult::Failure ();
0 commit comments