Skip to content
Snippets Groups Projects
Commit 2bdff11d authored by sapier's avatar sapier Committed by kwolekr
Browse files

fix memory leak on shader shutdown

parent 7a326983
Branches
Tags
No related merge requests found
......@@ -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)
......
......@@ -49,6 +49,7 @@ struct ShaderInfo
video::E_MATERIAL_TYPE material;
ShaderInfo(): name(""), material(video::EMT_SOLID) {}
virtual ~ShaderInfo() {}
};
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment