From f7b78115e30dff581dec3b3c576da46f2c00288a Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Sun, 20 Sep 2020 14:38:43 -0400 Subject: [PATCH] [rs] Convert swapchain.get_current_frame to a immutable reference --- wgpu/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {