[deno] release current texture of surface after present

(cherry picked from denoland/deno#28691)
This commit is contained in:
chirsz 2025-09-17 13:50:45 -04:00 committed by Erich Gubler
parent 99a6fdd803
commit 48097412fc

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(())
}
}