-------------------------------------------------------------------------------------- Description: Called by Tr2RenderContextAL when a primary or secondary context is created. Initializes Tr2EffectStateManager instance. Arguments: renderContext - AL render context created --------------------------------------------------------------------------------------
| 127 | // renderContext - AL render context created |
| 128 | // -------------------------------------------------------------------------------------- |
| 129 | void Tr2RenderContextBase::OnContextCreated( Tr2PrimaryRenderContextAL& renderContext ) |
| 130 | { |
| 131 | #if !TRINITY_PLATFORM_HAS_PRIMARY_CONTEXT |
| 132 | m_backBuffer->Attach( renderContext.GetDefaultBackBuffer(), this ); |
| 133 | #endif |
| 134 | } |
| 135 | |
| 136 | #if !TRINITY_PLATFORM_HAS_PRIMARY_CONTEXT |
| 137 | // -------------------------------------------------------------------------------------- |