private void DisposeDevice() { UnloadContent(); RenderTarget.Dispose(); GraphicsDevice.ImmediateContext.Rasterizer.State.Dispose(); GraphicsDevice.Dispose(); SwapChain.Dispose(); }
private void DisposeDevice() { UnloadContent(); factor?.Dispose(); device.ImmediateContext.OutputMerger.BlendState?.Dispose(); device.ImmediateContext?.Dispose(); depthStencil?.Dispose(); renderTarget?.Dispose(); device?.Dispose(); swapChain?.Dispose(); }