| 1222 | } |
| 1223 | |
| 1224 | void TriTextureRes::DestroyOwnTexture() |
| 1225 | { |
| 1226 | if( m_lodEnabled ) |
| 1227 | { |
| 1228 | if( m_ownTexture.IsValid() ) |
| 1229 | { |
| 1230 | Tr2TextureLodManager::Instance().GpuTextureDestroyed( m_ownTexture.GetDesc() ); |
| 1231 | } |
| 1232 | if( m_loadedBitmap ) |
| 1233 | { |
| 1234 | Tr2TextureLodManager::Instance().CpuTextureDestroyed( *m_loadedBitmap ); |
| 1235 | m_loadedBitmap = nullptr; |
| 1236 | } |
| 1237 | m_lodEnabled = false; |
| 1238 | m_hadLodRequests = false; |
| 1239 | } |
| 1240 | m_ownTexture = Tr2TextureAL(); |
| 1241 | SetTexture( m_ownTexture ); |
| 1242 | } |
| 1243 | |
| 1244 | bool TriTextureRes::HadLodRequests() const |
| 1245 | { |
nothing calls this directly
no test coverage detected