Fix Presentation (#5312)

This commit is contained in:
Connor Fitzgerald authored and GitHub committed 2024-02-27 20:36:20 -05:00
1 parent 744454b9e2
commit 330a8608e3
2 files changed
+5 -2

No files matched your search

+1 -1
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) {
+4 -1
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),
}),