Skip to content

Commit

Permalink
Update webgpu_video_frame.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Jan 22, 2025
1 parent c3b86f8 commit 0d06f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/webgpu_video_frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
// In case our VideoFrameTexture is no longer needed, we should close its backed VideoFrame, see issue #30379:
if ( videoTexture.image instanceof VideoFrame ) videoTexture.image.close();

videoTexture.image = null;

} );

}
Expand Down

0 comments on commit 0d06f09

Please sign in to comment.