void ReleaseBackBuffer(BackBuffer bb) { _activeBackBuffers.Remove(bb); bb.ClearData(); if (_backBufferPool == null) { _backBufferPool = new List <BackBuffer>(); } _backBufferPool.Add(bb); }
void ReleaseBackBuffer(int bbIndex) { BackBuffer bb = _activeBackBuffers[bbIndex]; _activeBackBuffers.RemoveAt(bbIndex); bb.ClearData(); if (_backBufferPool == null) { _backBufferPool = new List <BackBuffer>(); } _backBufferPool.Add(bb); }
void ReleaseBackBuffer(BackBuffer bb) { _activeBackBuffers.Remove(bb); bb.ClearData(); if (_backBufferPool == null) _backBufferPool = new List<BackBuffer>(); _backBufferPool.Add(bb); }