mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 08:53:20 +00:00
Fix Presentation (#5312)
This commit is contained in:
parent
744454b9e2
commit
330a8608e3
@ -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) {
|
||||
|
@ -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),
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user