コード例 #1
0
 private void SwapChain_Unloaded(object sender, RoutedEventArgs e)
 {
     if (_renderer != null)
     {
         try
         {
             _renderer.Dispose();
             _renderer = null;
         }
         catch { }
     }
 }
コード例 #2
0
        private void SwapChain_Unloaded(object sender, RoutedEventArgs e)
        {
#if INCLUDE_INTRO
            if (_renderer != null)
            {
                try
                {
                    _renderer.Dispose();
                    _renderer = null;
                }
                catch { }
            }
#endif
        }