From 160d79f24da98a45b835e28c32aaefae9d1add5f Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Sun, 16 Mar 2025 21:23:29 -0700 Subject: [PATCH] Make prepare_view_targets() caching account for CameraMainTextureUsages (#18347) Small bugfix. --- crates/bevy_render/src/view/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/view/mod.rs b/crates/bevy_render/src/view/mod.rs index ba0f8cca62..41329c41b7 100644 --- a/crates/bevy_render/src/view/mod.rs +++ b/crates/bevy_render/src/view/mod.rs @@ -1043,7 +1043,7 @@ pub fn prepare_view_targets( }; let (a, b, sampled, main_texture) = textures - .entry((camera.target.clone(), view.hdr, msaa)) + .entry((camera.target.clone(), texture_usage.0, view.hdr, msaa)) .or_insert_with(|| { let descriptor = TextureDescriptor { label: None,