Make prepare_view_targets() caching account for CameraMainTextureUsages (#18347)

Small bugfix.
This commit is contained in:
JMS55 2025-03-16 21:23:29 -07:00 committed by GitHub
parent 35526743b3
commit 160d79f24d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1043,7 +1043,7 @@ pub fn prepare_view_targets(
}; };
let (a, b, sampled, main_texture) = textures 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(|| { .or_insert_with(|| {
let descriptor = TextureDescriptor { let descriptor = TextureDescriptor {
label: None, label: None,