-------------------------------------------------------------------------------------- Description: Unmaps the vertex buffer that was mapped for writing, making data available to the GPU, with an early exit if buffer is invalid. Should be called after data is modified. --------------------------------------------------------------------------------------
| 209 | // with an early exit if buffer is invalid. Should be called after data is modified. |
| 210 | // -------------------------------------------------------------------------------------- |
| 211 | void Tr2DirectInstanceData::UpdateData() |
| 212 | { |
| 213 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 214 | if( !m_vertexBuffer.IsValid() ) |
| 215 | { |
| 216 | return; |
| 217 | } |
| 218 | |
| 219 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 220 | m_vertexBuffer.UnmapForWriting( renderContext ); |
| 221 | } |
| 222 | |
| 223 | // -------------------------------------------------------------------------------------- |
| 224 | // Description: |
no test coverage detected