diff options
author | 2020-12-16 10:10:40 -0600 | |
---|---|---|
committer | 2020-12-16 10:10:40 -0600 | |
commit | 1c06920158e1a47977b2762bf8b34e56fd1a935a (patch) | |
tree | e14590ff1a7258213eb7aa2cefcd8cbefcaa2421 /wgpu | |
parent | 4e391013c8bf8544fb766bee5dbae10cfdbc9d93 (diff) | |
download | iced-1c06920158e1a47977b2762bf8b34e56fd1a935a.tar.gz iced-1c06920158e1a47977b2762bf8b34e56fd1a935a.tar.bz2 iced-1c06920158e1a47977b2762bf8b34e56fd1a935a.zip |
remove unused code
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/window/compositor.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs index ad1e609c..072521ef 100644 --- a/wgpu/src/window/compositor.rs +++ b/wgpu/src/window/compositor.rs @@ -100,7 +100,7 @@ impl iced_graphics::window::Compositor for Compositor { width: u32, height: u32, ) -> Self::SwapChain { - let swap_chain = self.device.create_swap_chain( + self.device.create_swap_chain( surface, &wgpu::SwapChainDescriptor { usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT, @@ -109,9 +109,7 @@ impl iced_graphics::window::Compositor for Compositor { width, height, }, - ); - - swap_chain + ) } fn draw<T: AsRef<str>>( |