コード例 #1
0
        public void Dispose()
        {
            if (this.disposed)
            {
                return;
            }
            this.disposed = true;

            // Set big object references to null to make
            // sure they're garbage collected even when keeping
            // a reference to the disposed DrawDevice around.
            this.renderOptions      = null;
            this.renderStats        = null;
            this.tempMaterialPool   = null;
            this.drawVertices       = null;
            this.drawBuffer         = null;
            this.sortBufferSolid    = null;
            this.sortBufferBlended  = null;
            this.sortBufferTemp     = null;
            this.batchBufferSolid   = null;
            this.batchBufferBlended = null;
            this.batchIndexPool     = null;
        }
コード例 #2
0
ファイル: DrawDevice.cs プロジェクト: razluta/jazz2
        private void Dispose(bool manually)
        {
            if (!this.disposed)
            {
                // Release Resources
                this.disposed = true;

                // Set big object references to null to make
                // sure they're garbage collected even when keeping
                // a reference to the disposed DrawDevice around.
                this.renderOptions      = null;
                this.renderStats        = null;
                this.tempMaterialPool   = null;
                this.drawVertices       = null;
                this.drawBuffer         = null;
                this.sortBufferSolid    = null;
                this.sortBufferBlended  = null;
                this.sortBufferTemp     = null;
                this.batchBufferSolid   = null;
                this.batchBufferBlended = null;
                this.drawVertices       = null;
                this.batchIndexPool     = null;
            }
        }