Beispiel #1
0
        public void DirectXRelease()
        {
            try
            {
                if (!booting && !DX_reinit)
                {
                    DX_reinit = true;

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

                    DX_reinit = false;
                }
            }
            catch (Exception ex)
            {
                Debug.Write("DX release error!" + ex.ToString());
                DX_reinit = false;
            }
        }