TODO: Error handling
| 53 | |
| 54 | // TODO: Error handling |
| 55 | void Tr2TextureAtlasMan::RemoveAtlas( Tr2RenderContextEnum::PixelFormat fmt ) |
| 56 | { |
| 57 | CcpAutoMutex lock( m_atlasesMutex ); |
| 58 | |
| 59 | ssize_t ix = 0; |
| 60 | for( auto it = m_atlases.begin(); it != m_atlases.end(); ++it, ++ix ) |
| 61 | { |
| 62 | if( ( *it )->GetFormat() == fmt ) |
| 63 | { |
| 64 | m_atlases.Remove( ix ); |
| 65 | break; |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | void Tr2TextureAtlasMan::RemoveAtlasWrap( unsigned fmt ) |
| 71 | { |