Started to fix texture memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -267,6 +267,8 @@ void Material::install(bool is_full_path)
|
||||
//-----------------------------------------------------------------------------
|
||||
Material::~Material()
|
||||
{
|
||||
if(m_texture)
|
||||
irr_driver->removeTexture(m_texture);
|
||||
// If a special sfx is installed (that isn't part of stk itself), the
|
||||
// entry needs to be removed from the sfx_manager's mapping, since other
|
||||
// tracks might use the same name.
|
||||
|
||||
Reference in New Issue
Block a user