mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
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:
parent
0b93030582
commit
e6a2a86f2c
@ -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(
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user