diff --git a/wgpu-hal/src/dynamic/device.rs b/wgpu-hal/src/dynamic/device.rs index ba7ec47b66..f044a001de 100644 --- a/wgpu-hal/src/dynamic/device.rs +++ b/wgpu-hal/src/dynamic/device.rs @@ -226,7 +226,7 @@ impl 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( diff --git a/wgpu-hal/src/gles/device.rs b/wgpu-hal/src/gles/device.rs index 1abe2b8103..15292d95c5 100644 --- a/wgpu-hal/src/gles/device.rs +++ b/wgpu-hal/src/gles/device.rs @@ -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); }