| 449 | } |
| 450 | |
| 451 | void PostEffect::onRemove() |
| 452 | { |
| 453 | Parent::onRemove(); |
| 454 | |
| 455 | PFXMGR->_removeEffect( this ); |
| 456 | |
| 457 | LightManager::smActivateSignal.remove( this, &PostEffect::_onLMActivate ); |
| 458 | |
| 459 | mShader = NULL; |
| 460 | _cleanTargets(); |
| 461 | |
| 462 | if ( mNamedTarget.isRegistered() || mNamedTargetDepthStencil.isRegistered() ) |
| 463 | GFXTextureManager::removeEventDelegate( this, &PostEffect::_onTextureEvent ); |
| 464 | |
| 465 | if ( mNamedTarget.isRegistered() ) |
| 466 | { |
| 467 | mNamedTarget.unregister(); |
| 468 | mNamedTarget.getTextureDelegate().clear(); |
| 469 | } |
| 470 | |
| 471 | if ( mNamedTargetDepthStencil.isRegistered() ) |
| 472 | mNamedTargetDepthStencil.unregister(); |
| 473 | } |
| 474 | |
| 475 | void PostEffect::_updateScreenGeometry( const Frustum &frustum, |
| 476 | GFXVertexBufferHandle<PFXVertex> *outVB ) |
nothing calls this directly
no test coverage detected