private void OnUnload(object sender, EventArgs e) { // disable controls _variableHandler.Disable(this); // dispose resources GLResource.DisposeAll(this); }
protected override void OnUnload() { base.OnUnload(); // release all gl resources on unload GLResource.DisposeAll(this); }
private void OnUnload(object sender, EventArgs e) { // release all gl resources on unload GLResource.DisposeAll(this); }