Fix Presentation (#5312)

This commit is contained in:
Connor Fitzgerald 2024-02-27 20:36:20 -05:00 committed by GitHub
parent 744454b9e2
commit 330a8608e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -1153,7 +1153,7 @@ impl Global {
for &cmb_id in command_buffer_ids {
// we reset the used surface textures every time we use
// it, so make sure to set_size on it.
used_surface_textures.set_size(hub.textures.read().len());
used_surface_textures.set_size(device.tracker_indices.textures.size());
#[allow(unused_mut)]
let mut cmdbuf = match command_buffer_guard.replace_with_error(cmb_id) {

View File

@ -220,7 +220,10 @@ impl Global {
layers: 0..1,
mips: 0..1,
},
info: ResourceInfo::new("<Surface>", None),
info: ResourceInfo::new(
"<Surface Texture>",
Some(device.tracker_indices.textures.clone()),
),
clear_mode: RwLock::new(resource::TextureClearMode::Surface {
clear_view: Some(clear_view),
}),