HRESULT APPLICATION::Cleanup() { try { m_build1.Release(); m_build2.Release(); m_pDevice->Release(); debug.Print("Application terminated"); } catch(...){} return S_OK; }
HRESULT APPLICATION::Cleanup() { try { m_pFont->Release(); if(m_pFarmerMesh != NULL) m_pFarmerMesh->Release(); m_pDevice->Release(); debug.Print("Application terminated"); } catch(...){} return S_OK; }