diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 448c826dfe..73ab250400 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -2599,7 +2599,7 @@ impl SwapChain { /// /// If a SwapChainFrame referencing this surface is alive when the swapchain is recreated, /// recreating the swapchain will panic. - pub fn get_current_frame(&mut self) -> Result { + pub fn get_current_frame(&self) -> Result { let (view_id, status, detail) = Context::swap_chain_get_current_texture_view(&*self.context, &self.id); let output = view_id.map(|id| SwapChainTexture {