| 639 | } |
| 640 | |
| 641 | void Tr2LightManager::ReleaseResources( TriStorage s ) |
| 642 | { |
| 643 | if( s & m_perFrameData.GetMemoryClass() ) |
| 644 | { |
| 645 | m_perFrameData = Tr2ConstantBufferAL(); |
| 646 | } |
| 647 | |
| 648 | // light manager does not release all sorts of buffers/effects. raytracing manager on the other hand does. |
| 649 | // probably because raytracing manager expects to get destroyed, unlike light manager, which is a singleton...? |
| 650 | |
| 651 | if( ( s & TRISTORAGE_ALL ) == TRISTORAGE_ALL ) |
| 652 | { |
| 653 | m_Raytracing.m_perFrameData = Tr2ConstantBufferAL(); |
| 654 | } |
| 655 | } |
| 656 | |
| 657 | bool Tr2LightManager::OnPrepareResources() |
| 658 | { |
nothing calls this directly
no test coverage detected