mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fix memory leak on shader shutdown
This commit is contained in:
parent
7a32698312
commit
2bdff11d54
2 changed files with 7 additions and 0 deletions
|
@ -388,6 +388,12 @@ ShaderSource::ShaderSource(IrrlichtDevice *device):
|
|||
ShaderSource::~ShaderSource()
|
||||
{
|
||||
//m_shader_callback->drop();
|
||||
|
||||
for (std::vector<IShaderConstantSetter*>::iterator iter = m_global_setters.begin();
|
||||
iter != m_global_setters.end(); iter++) {
|
||||
delete *iter;
|
||||
}
|
||||
m_global_setters.clear();
|
||||
}
|
||||
|
||||
u32 ShaderSource::getShaderId(const std::string &name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue