/// <summary> /// /// </summary> /// <param name="disposeManagedResources"></param> protected override void OnDispose(bool disposeManagedResources) { if (deviceContext != null && !deviceContext.IsDisposed) { deviceContext.ClearState(); deviceContext.OutputMerger.ResetTargets(); } base.OnDispose(disposeManagedResources); }
public void ClearState() { deviceContext.ClearState(); Reset(); }