-----------------------------------------------------------------------
| 443 | } |
| 444 | //----------------------------------------------------------------------- |
| 445 | void Pass::removeTextureUnitState(unsigned short index) |
| 446 | { |
| 447 | OGRE_LOCK_MUTEX(mTexUnitChangeMutex); |
| 448 | assert (index < mTextureUnitStates.size() && "Index out of bounds"); |
| 449 | |
| 450 | TextureUnitStates::iterator i = mTextureUnitStates.begin() + index; |
| 451 | OGRE_DELETE *i; |
| 452 | mTextureUnitStates.erase(i); |
| 453 | _notifyNeedsRecompile(); |
| 454 | _dirtyHash(); |
| 455 | mContentTypeLookupBuilt = false; |
| 456 | } |
| 457 | //----------------------------------------------------------------------- |
| 458 | void Pass::removeAllTextureUnitStates(void) |
| 459 | { |
no test coverage detected