Пример #1
0
    void ReleaseBackBuffer(BackBuffer bb)
    {
        _activeBackBuffers.Remove(bb);
        bb.ClearData();

        if (_backBufferPool == null)
        {
            _backBufferPool = new List <BackBuffer>();
        }
        _backBufferPool.Add(bb);
    }
Пример #2
0
    void ReleaseBackBuffer(int bbIndex)
    {
        BackBuffer bb = _activeBackBuffers[bbIndex];

        _activeBackBuffers.RemoveAt(bbIndex);
        bb.ClearData();

        if (_backBufferPool == null)
        {
            _backBufferPool = new List <BackBuffer>();
        }
        _backBufferPool.Add(bb);
    }
Пример #3
0
    void ReleaseBackBuffer(BackBuffer bb)
    {
        _activeBackBuffers.Remove(bb);
        bb.ClearData();

        if (_backBufferPool == null) _backBufferPool = new List<BackBuffer>();
        _backBufferPool.Add(bb);
    }