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

Method ReleaseResources

trinity/Tr2DepthStencil.cpp:176–183  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

174
175// --------------------------------------------------------------------------------------
176void Tr2DepthStencil::ReleaseResources( TriStorage s )
177{
178 if( m_depthStencil.IsValid() && ( s & m_depthStencil.GetMemoryClass() ) )
179 {
180 m_depthStencil = Tr2TextureAL();
181 m_onTextureChange();
182 }
183}
184
185// --------------------------------------------------------------------------------------
186bool Tr2DepthStencil::OnPrepareResources()

Callers

nothing calls this directly

Calls 3

Tr2TextureALClass · 0.70
IsValidMethod · 0.45
GetMemoryClassMethod · 0.45

Tested by

no test coverage detected