| 1527 | } |
| 1528 | |
| 1529 | void GFXTextureManager::releaseCubemap( GFXCubemap *cubemap ) |
| 1530 | { |
| 1531 | if ( mTextureManagerState == GFXTextureManager::Dead ) |
| 1532 | return; |
| 1533 | |
| 1534 | const String &path = cubemap->getPath(); |
| 1535 | |
| 1536 | CubemapTable::Iterator iter = mCubemapTable.find( path ); |
| 1537 | if ( iter != mCubemapTable.end() && iter->value == cubemap ) |
| 1538 | mCubemapTable.erase( iter ); |
| 1539 | |
| 1540 | // If we have a path for the texture then |
| 1541 | // remove change notifications for it. |
| 1542 | //Path texPath = texture->getPath(); |
| 1543 | //if ( !texPath.isEmpty() ) |
| 1544 | //FS::RemoveChangeNotification( texPath, this, &GFXTextureManager::_onFileChanged ); |
| 1545 | } |
| 1546 | |
| 1547 | void GFXTextureManager::_onFileChanged( const Torque::Path &path ) |
| 1548 | { |
no test coverage detected