mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
fix: Set mip_level_count in TextureInitTracker for externally created textures (#6249)
Co-authored-by: Adam Winiarczuk <tsu@liv.tv>
This commit is contained in:
parent
c4110afc7f
commit
f3cbd6ce54
@ -1057,7 +1057,7 @@ impl Texture {
|
||||
if init {
|
||||
TextureInitTracker::new(desc.mip_level_count, desc.array_layer_count())
|
||||
} else {
|
||||
TextureInitTracker::new(0, 0)
|
||||
TextureInitTracker::new(desc.mip_level_count, 0)
|
||||
},
|
||||
),
|
||||
full_range: TextureSelector {
|
||||
|
Loading…
Reference in New Issue
Block a user