@@ -24,7 +24,6 @@ pub struct Backend {
2424 quad_pipeline : quad:: Pipeline ,
2525 text_pipeline : text:: Pipeline ,
2626 triangle_pipeline : triangle:: Pipeline ,
27- offscreen_pipeline : offscreen:: Pipeline ,
2827
2928 #[ cfg( any( feature = "image" , feature = "svg" ) ) ]
3029 image_pipeline : image:: Pipeline ,
@@ -44,7 +43,6 @@ impl Backend {
4443 let quad_pipeline = quad:: Pipeline :: new ( device, format) ;
4544 let triangle_pipeline =
4645 triangle:: Pipeline :: new ( device, format, settings. antialiasing ) ;
47- let offscreen_pipeline = offscreen:: Pipeline :: new ( device) ;
4846
4947 #[ cfg( any( feature = "image" , feature = "svg" ) ) ]
5048 let image_pipeline = image:: Pipeline :: new ( device, format) ;
@@ -53,7 +51,6 @@ impl Backend {
5351 quad_pipeline,
5452 text_pipeline,
5553 triangle_pipeline,
56- offscreen_pipeline,
5754
5855 #[ cfg( any( feature = "image" , feature = "svg" ) ) ]
5956 image_pipeline,
@@ -158,6 +155,7 @@ impl Backend {
158155
159156 if format != wgpu:: TextureFormat :: Rgba8UnormSrgb {
160157 log:: info!( "Texture format is {format:?}; performing conversion to rgba8.." ) ;
158+ let pipeline = offscreen:: Pipeline :: new ( device) ;
161159
162160 let texture = device. create_texture ( & wgpu:: TextureDescriptor {
163161 label : Some ( "iced_wgpu::offscreen rgba8 source texture" ) ,
@@ -173,7 +171,7 @@ impl Backend {
173171 let view =
174172 texture. create_view ( & wgpu:: TextureViewDescriptor :: default ( ) ) ;
175173
176- self . offscreen_pipeline . convert (
174+ pipeline . convert (
177175 device,
178176 texture_extent,
179177 frame,
0 commit comments