| 121 | } |
| 122 | |
| 123 | void Tr2FloatParameter::RebuildEffectHandles( Tr2Shader* effectRes ) |
| 124 | { |
| 125 | if( !effectRes && m_reroutedValue ) |
| 126 | { |
| 127 | // Ensure that rerouted values are not left with a dangling reference. |
| 128 | SetDestination( NULL, 0 ); |
| 129 | } |
| 130 | m_isUsedByEffect = ( effectRes && !m_name.empty() && effectRes->GetConstant( m_name.c_str() ) ); |
| 131 | } |
| 132 | |
| 133 | bool Tr2FloatParameter::Initialize() |
| 134 | { |
no test coverage detected