[deno] release current texture of surface after present

(cherry picked from denoland/deno#28691)
This commit is contained in:
chirsz authored and Erich Gubler committed 2025-09-25 16:35:05 -04:00
1 parent 99a6fdd803
commit 48097412fc
1 file changed
+3
+3
View File
@@ -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(())
}
}