OpenTK.GLControl.OnHandleDestroyed C# (CSharp) Method

OnHandleDestroyed() protected method

Raises the HandleDestroyed event.
protected OnHandleDestroyed ( EventArgs e ) : void
e System.EventArgs Not used.
return void
        protected override void OnHandleDestroyed(EventArgs e)
        {
            if (context != null)
            {
                context.Dispose();
                context = null;
            }

            if (implementation != null)
            {
                implementation.WindowInfo.Dispose();
                implementation = null;
            }

            base.OnHandleDestroyed(e);
        }