MCPcopy Create free account
hub / github.com/carbonengine/trinity / ReleaseResources

Method ReleaseResources

trinity/Tr2RenderTarget.cpp:488–495  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

486
487// --------------------------------------------------------------------------------------
488void Tr2RenderTarget::ReleaseResources( TriStorage s )
489{
490 if( m_renderTarget.IsValid() && ( m_renderTarget.GetMemoryClass() & s ) )
491 {
492 m_renderTarget = Tr2TextureAL();
493 m_onTextureChange();
494 }
495}
496
497// --------------------------------------------------------------------------------------
498bool Tr2RenderTarget::OnPrepareResources()

Callers

nothing calls this directly

Calls 3

Tr2TextureALClass · 0.70
IsValidMethod · 0.45
GetMemoryClassMethod · 0.45

Tested by

no test coverage detected