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:
Adam Winiarczuk 2024-09-11 00:28:36 +02:00 committed by GitHub
parent c4110afc7f
commit f3cbd6ce54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {