mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[deno] release current texture of surface after present
(cherry picked from denoland/deno#28691)
This commit is contained in:
parent
99a6fdd803
commit
48097412fc
@ -164,6 +164,9 @@ impl GPUCanvasContext {
|
||||
|
||||
config.device.instance.surface_present(self.surface_id)?;
|
||||
|
||||
// next `get_current_texture` call would get a new texture
|
||||
*self.texture.borrow_mut() = None;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user