Skip to content

Commit

Permalink
Fix a regression from gfx-rs#6223
Browse files Browse the repository at this point in the history
buffer and texture got swapped in one of theses few places where the type system couldn't catch my mistake.
  • Loading branch information
nical committed Sep 6, 2024
1 parent 0b93030 commit d1a83fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wgpu-hal/src/dynamic/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion wgpu-hal/src/gles/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d1a83fa

Please sign in to comment.