public void Put(DeviceContextProxy context) { context.ClearRenderTagetBindings(); context.Reset(); contextPool.Add(context); }
/// <summary> /// Puts the specified context back to the pool after use /// </summary> /// <param name="context">The context.</param> public void Put(DeviceContextProxy context) { context.DeviceContext.OutputMerger.ResetTargets(); context.Reset(); contextPool.Add(context); }