Skip to content

Commit 50a2613

Browse files
andyleisersonteoxoy
authored andcommitted
Remove redundant device validity check and inaccurate comment
1 parent 9d0fd21 commit 50a2613

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

wgpu-core/src/device/global.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,6 @@ impl Global {
646646
let error = 'error: {
647647
let device = self.hub.devices.get(device_id);
648648

649-
// this check can't go in the body of `create_bind_group_layout` since the closure might not get called
650-
if let Err(e) = device.check_is_valid() {
651-
break 'error e.into();
652-
}
653-
654649
let layout = match device.create_bind_group_layout(desc) {
655650
Ok(layout) => layout,
656651
Err(e) => break 'error e,

wgpu-core/src/device/resource.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,6 @@ impl Device {
24312431
self: &Arc<Self>,
24322432
desc: &binding_model::BindGroupLayoutDescriptor,
24332433
) -> Result<Arc<BindGroupLayout>, binding_model::CreateBindGroupLayoutError> {
2434-
// this check can't go in the body of `create_bind_group_layout_internal` since the closure might not get called
24352434
self.check_is_valid()?;
24362435

24372436
let entry_map = bgl::EntryMap::from_entries(&desc.entries)?;

0 commit comments

Comments
 (0)