-------------------------------------------------------------------------------------- Description: Notifies the object that the data updated with the previous call to PutData is no longer needed. Arguments: renderContext - current render context --------------------------------------------------------------------------------------
| 128 | // renderContext - current render context |
| 129 | // -------------------------------------------------------------------------------------- |
| 130 | void Tr2DynamicRingBuffer::DoneUsingData( Tr2RenderContext& renderContext ) |
| 131 | { |
| 132 | if( m_lastPutSucceeded ) |
| 133 | { |
| 134 | if( !m_regions.empty() && m_regions.back().fence && FAILED( m_regions.back().fence->PutFence( renderContext ) ) ) |
| 135 | { |
| 136 | DeallocateFence( m_regions.back().fence ); |
| 137 | m_regions.back().fence = nullptr; |
| 138 | } |
| 139 | m_lastPutSucceeded = false; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | // -------------------------------------------------------------------------------------- |
| 144 | // Description: |
no test coverage detected