-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
First, thanks for writing this, it's very helpful.
For my use case I needed to clear the texture to stop sharing at times and I didn't see an obvious way to do it. My solution:
CaptureTexture.cs
public void ClearTarget()
{
client?.ClearTarget();
}
ClearTarget.cs
public void ClearTarget()
{
if (IsDisposed) throw new ObjectDisposedException(nameof(CaptureClient));
if (CurrentCapture != null)
{
CurrentCapture.Dispose();
CurrentCapture = null;
}
}
Happy to do a PR if you're accepting them.
Metadata
Metadata
Assignees
Labels
No labels