File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed 
crates/bevy_render/src/view Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,18 @@ impl Plugin for WindowRenderPlugin {
4040            render_app
4141                . init_resource :: < ExtractedWindows > ( ) 
4242                . init_resource :: < WindowSurfaces > ( ) 
43-                 . init_resource :: < ScreenshotToScreenPipeline > ( ) 
4443                . init_non_send_resource :: < NonSendMarker > ( ) 
4544                . add_systems ( ExtractSchedule ,  extract_windows) 
4645                . configure_set ( Render ,  WindowSystem :: Prepare . in_set ( RenderSet :: Prepare ) ) 
4746                . add_systems ( Render ,  prepare_windows. in_set ( WindowSystem :: Prepare ) ) ; 
4847        } 
4948    } 
49+ 
50+     fn  finish ( & self ,  app :  & mut  App )  { 
51+         if  let  Ok ( render_app)  = app. get_sub_app_mut ( RenderApp )  { 
52+             render_app. init_resource :: < ScreenshotToScreenPipeline > ( ) ; 
53+         } 
54+     } 
5055} 
5156
5257pub  struct  ExtractedWindow  { 
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ impl Plugin for ScreenshotPlugin {
9898            "screenshot.wgsl" , 
9999            Shader :: from_wgsl
100100        ) ; 
101+     } 
101102
103+     fn  finish ( & self ,  app :  & mut  bevy_app:: App )  { 
102104        if  let  Ok ( render_app)  = app. get_sub_app_mut ( RenderApp )  { 
103105            render_app. init_resource :: < SpecializedRenderPipelines < ScreenshotToScreenPipeline > > ( ) ; 
104106        } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments