Make prepare_view_targets() caching account for CameraMainTextureUsages (#18347)
Small bugfix.
This commit is contained in:
parent
35526743b3
commit
160d79f24d
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user