Fix a regression from #6223 (#6227)

buffer and texture got swapped in one of theses few places where the type system couldn't catch my mistake.
This commit is contained in:
Nicolas Silva 2024-09-06 11:39:09 +02:00 committed by GitHub
parent 0b93030582
commit e6a2a86f2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ impl<D: Device + DynResource> DynDevice for D {
unsafe fn add_raw_texture(&self, texture: &dyn DynTexture) {
let texture = texture.expect_downcast_ref();
unsafe { D::add_raw_buffer(self, texture) };
unsafe { D::add_raw_texture(self, texture) };
}
unsafe fn create_texture_view(

View File

@ -986,7 +986,7 @@ impl crate::Device for super::Device {
self.counters.textures.sub(1);
}
unsafe fn add_raw_texture(&self, _buffer: &super::Texture) {
unsafe fn add_raw_texture(&self, _texture: &super::Texture) {
self.counters.textures.add(1);
}