Skip to content

Commit

Permalink
fix: Set mip_level_count in TextureInitTracker for externally created…
Browse files Browse the repository at this point in the history
… textures (#6249)

Co-authored-by: Adam Winiarczuk <[email protected]>
  • Loading branch information
Tsuguri and Adam Winiarczuk authored Sep 10, 2024
1 parent c4110af commit f3cbd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f3cbd6c

Please sign in to comment.