Example #1
0
 public void ReleaseDeviceResources()
 {
     Bitmaps?.Dispose();
     SwapChain?.Dispose();
     _solidBrush?.Dispose();
     RenderTarget?.Dispose();
     D3Device?.Dispose();
 }
Example #2
0
 public void Dispose()
 {
     m_dwriteFactory?.Dispose();
     m_d2dContext?.Dispose();
     m_swapchain?.Dispose();
     m_device?.Dispose();
     m_context?.Dispose();
     m_disposed = true;
 }