| 1163 | } |
| 1164 | |
| 1165 | void Tr2EffectStateManager::SetupContextResources() |
| 1166 | { |
| 1167 | // Create all HW vertex layouts here to avoid creating those during multithreaded rendering |
| 1168 | for( auto& it : s_vertexLayoutMap ) |
| 1169 | { |
| 1170 | Tr2VertexLayoutAL& hvl = *it.second; |
| 1171 | if( !hvl.IsValid() ) |
| 1172 | { |
| 1173 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 1174 | hvl.Create( it.first, renderContext ); |
| 1175 | } |
| 1176 | } |
| 1177 | } |
| 1178 | |
| 1179 | void Tr2EffectStateManager::AssignFrom( const Tr2EffectStateManager& other ) |
| 1180 | { |
no test coverage detected