Joerg's fix for the material's memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1d95234f5d
commit
8417315678
@ -19,6 +19,7 @@
|
||||
|
||||
#include "file_manager.hpp"
|
||||
#include "material.hpp"
|
||||
#include "string_utils.hpp"
|
||||
|
||||
#define UCLAMP 1
|
||||
#define VCLAMP 2
|
||||
@ -194,5 +195,8 @@ void Material::install(bool is_full_path)
|
||||
m_state -> setOpaque () ;
|
||||
m_state -> disable ( GL_BLEND ) ;
|
||||
}
|
||||
|
||||
// now set the name to the basename, so that all tests work as expected
|
||||
m_texname = StringUtils::basename(m_texname);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user