diff --git a/crates/eframe/src/native/wgpu_integration.rs b/crates/eframe/src/native/wgpu_integration.rs index 1123c61e222..acbd8c2f830 100644 --- a/crates/eframe/src/native/wgpu_integration.rs +++ b/crates/eframe/src/native/wgpu_integration.rs @@ -655,7 +655,6 @@ impl<'app> WgpuWinitRunning<'app> { true } }); - let screenshot_requested = !screenshot_commands.is_empty(); let vsync_secs = painter.paint_and_update_textures( viewport_id, pixels_per_point, diff --git a/crates/egui-wgpu/src/capture.rs b/crates/egui-wgpu/src/capture.rs index 4bd87a3d7d1..a50468592f6 100644 --- a/crates/egui-wgpu/src/capture.rs +++ b/crates/egui-wgpu/src/capture.rs @@ -1,8 +1,7 @@ -use crate::RenderState; use egui::{UserData, ViewportId}; use epaint::ColorImage; use std::sync::{mpsc, Arc}; -use wgpu::{BindGroupLayout, MultisampleState, Sampler, StoreOp}; +use wgpu::{BindGroupLayout, MultisampleState, StoreOp}; /// A texture and a buffer for reading the rendered frame back to the cpu. /// The texture is required since [`wgpu::TextureUsages::COPY_SRC`] is not an allowed @@ -16,7 +15,6 @@ pub struct CaptureState { pub texture: wgpu::Texture, pipeline: wgpu::RenderPipeline, bind_group: wgpu::BindGroup, - buffer: Option, } pub type CaptureReceiver = mpsc::Receiver<(ViewportId, Vec, ColorImage)>; @@ -62,7 +60,6 @@ impl CaptureState { texture, pipeline, bind_group, - buffer: None, } } diff --git a/crates/egui-wgpu/src/winit.rs b/crates/egui-wgpu/src/winit.rs index 3faf941ea3f..5dc345f946e 100644 --- a/crates/egui-wgpu/src/winit.rs +++ b/crates/egui-wgpu/src/winit.rs @@ -4,8 +4,6 @@ use crate::capture::{capture_channel, CaptureReceiver, CaptureSender, CaptureState}; use crate::{renderer, RenderState, SurfaceErrorAction, WgpuConfiguration}; use egui::{Context, Event, UserData, ViewportId, ViewportIdMap, ViewportIdSet}; -use epaint::ColorImage; -use std::sync::mpsc; use std::{num::NonZeroU32, sync::Arc}; struct SurfaceState {