private void SwapChain_Unloaded(object sender, RoutedEventArgs e) { if (_renderer != null) { try { _renderer.Dispose(); _renderer = null; } catch { } } }
private void SwapChain_Unloaded(object sender, RoutedEventArgs e) { #if INCLUDE_INTRO if (_renderer != null) { try { _renderer.Dispose(); _renderer = null; } catch { } } #endif }