File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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 ) ?;
You can’t perform that action at this time.
0 commit comments