robmikh / SimpleRecorder

A simple screen recorder using both the Windows.Graphics.Capture and Windows.Media.Transcoding APIs.
MIT License
219 stars 43 forks source link

Clear the texture used for encoding instead of hoarding a blank texture #12

Closed robmikh closed 3 years ago

robmikh commented 4 years ago

Looking back at this code... I'm not sure why I'm using CopyResource instead of a clear. Hell, the blank texture is made blank using a clear!

Definitely should revisit this. This pattern propagated to a few other of my projects too, without thinking (the gif encoders and ffmpeg demo come to mind).