File tree Expand file tree Collapse file tree 3 files changed +0
-12
lines changed Expand file tree Collapse file tree 3 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -273,10 +273,7 @@ impl<B: GfxBackend> Device<B> {
273273            mem_allocator :  Mutex :: new ( mem_allocator) , 
274274            desc_allocator :  Mutex :: new ( descriptors) , 
275275            queue_group, 
276-             #[ cfg( debug_assertions) ]  
277276            life_guard :  LifeGuard :: new ( "<device>" ) , 
278-             #[ cfg( not( debug_assertions) ) ]  
279-             life_guard :  LifeGuard :: new ( "" ) , 
280277            active_submission_index :  0 , 
281278            trackers :  Mutex :: new ( TrackerSet :: new ( B :: VARIANT ) ) , 
282279            render_passes :  Mutex :: new ( FastHashMap :: default ( ) ) , 
@@ -3623,10 +3620,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
36233620        } 
36243621
36253622        let  swap_chain = swap_chain:: SwapChain  { 
3626-             #[ cfg( debug_assertions) ]  
36273623            life_guard :  LifeGuard :: new ( "<SwapChain>" ) , 
3628-             #[ cfg( not( debug_assertions) ) ]  
3629-             life_guard :  LifeGuard :: new ( "" ) , 
36303624            device_id :  Stored  { 
36313625                value :  id:: Valid ( device_id) , 
36323626                ref_count :  device. life_guard . add_ref ( ) , 
Original file line number Diff line number Diff line change @@ -224,10 +224,7 @@ impl<B: hal::Backend> Adapter<B> {
224224            raw, 
225225            features, 
226226            limits, 
227-             #[ cfg( debug_assertions) ]  
228227            life_guard :  LifeGuard :: new ( "<Adapter>" ) , 
229-             #[ cfg( not( debug_assertions) ) ]  
230-             life_guard :  LifeGuard :: new ( "" ) , 
231228        } 
232229    } 
233230} 
Original file line number Diff line number Diff line change @@ -191,10 +191,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
191191                        layers :  0 ..1 , 
192192                        levels :  0 ..1 , 
193193                    } , 
194-                     #[ cfg( debug_assertions) ]  
195194                    life_guard :  LifeGuard :: new ( "<SwapChain View>" ) , 
196-                     #[ cfg( not( debug_assertions) ) ]  
197-                     life_guard :  LifeGuard :: new ( "" ) , 
198195                } ; 
199196
200197                let  ref_count = view. life_guard . add_ref ( ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments