| 647 | } |
| 648 | |
| 649 | void PostEffect::onRemove() |
| 650 | { |
| 651 | Parent::onRemove(); |
| 652 | |
| 653 | PFXMGR->_removeEffect( this ); |
| 654 | |
| 655 | LightManager::smActivateSignal.remove( this, &PostEffect::_onLMActivate ); |
| 656 | |
| 657 | mShader = NULL; |
| 658 | _cleanTargets(); |
| 659 | |
| 660 | if ( mNamedTarget.isRegistered() || mNamedTargetDepthStencil.isRegistered() ) |
| 661 | GFXTextureManager::removeEventDelegate( this, &PostEffect::_onTextureEvent ); |
| 662 | |
| 663 | if ( mNamedTarget.isRegistered() ) |
| 664 | { |
| 665 | mNamedTarget.unregister(); |
| 666 | mNamedTarget.getTextureDelegate().clear(); |
| 667 | } |
| 668 | |
| 669 | if ( mNamedTargetDepthStencil.isRegistered() ) |
| 670 | mNamedTargetDepthStencil.unregister(); |
| 671 | } |
| 672 | |
| 673 | void PostEffect::_updateScreenGeometry( const Frustum &frustum, |
| 674 | GFXVertexBufferHandle<PFXVertex> *outVB ) |
nothing calls this directly
no test coverage detected