Skip to content

Commit

Permalink
Don't ask for ResMut in queue_view_auto_exposure_pipelines (#14762)
Browse files Browse the repository at this point in the history
This was creating a spurious ambiguity: `PipelineCache` uses interior
mutability.

Spotted as part of #7386.
  • Loading branch information
alice-i-cecile authored Aug 15, 2024
1 parent ad5e835 commit dbf0d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_core_pipeline/src/auto_exposure/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl FromWorld for AutoExposureResources {

fn queue_view_auto_exposure_pipelines(
mut commands: Commands,
pipeline_cache: ResMut<PipelineCache>,
pipeline_cache: Res<PipelineCache>,
mut compute_pipelines: ResMut<SpecializedComputePipelines<AutoExposurePipeline>>,
pipeline: Res<AutoExposurePipeline>,
view_targets: Query<(Entity, &AutoExposureSettings)>,
Expand Down

0 comments on commit dbf0d70

Please sign in to comment.