Example #1
0
File: D3D11.cs Project: Rhoana/Mojo
        public static void Terminate( ref Factory dxgiFactory, ref SlimDX.Direct3D11.Device d3d11Device )
        {
            if ( d3d11Device != null )
            {
                d3d11Device.Dispose();
                d3d11Device = null;
            }

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