Example #1
0
        public void Destroy()
        {
            Application.Idle -= OnTick;

            Screen.OnDisposeBuffers();

            Screen.OnDispose();

            BackbufferRTV.Dispose();

            D3DDevice.Dispose();
            DXGISwapChain.Dispose();
        }
Example #2
0
        public void Dispose()
        {
            if (m_backbuffer != null)
            {
                m_backbuffer.Dispose();
                m_backbuffer = null;
            }

            if (m_swapchain != null)
            {
                m_swapchain.Dispose();
                m_swapchain = null;
            }
        }