public void Destroy() { Application.Idle -= OnTick; Screen.OnDisposeBuffers(); Screen.OnDispose(); BackbufferRTV.Dispose(); D3DDevice.Dispose(); DXGISwapChain.Dispose(); }
public void Dispose() { if (m_backbuffer != null) { m_backbuffer.Dispose(); m_backbuffer = null; } if (m_swapchain != null) { m_swapchain.Dispose(); m_swapchain = null; } }