mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
[deno] release current texture of surface after present
(cherry picked from denoland/deno#28691)
This commit is contained in:
1 parent
99a6fdd803
commit
48097412fc
1 file changed
+3
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user