added texture cleanup to Scene destructor
git-svn-id: svn://anubis/fart/trunk@385 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
b4717b7cbc
commit
5b6a64cb5f
@ -75,6 +75,13 @@ Scene::Scene(const map<string, const char *> & options,
|
||||
|
||||
Scene::~Scene()
|
||||
{
|
||||
/* clean up any textures loaded with freeimage */
|
||||
for (std::map< std::string, FIBITMAP * >::iterator it = m_textures.begin();
|
||||
it != m_textures.end();
|
||||
it++)
|
||||
{
|
||||
FreeImage_Unload(it->second);
|
||||
}
|
||||
}
|
||||
|
||||
void Scene::renderPixel(int x, int y, unsigned char * pixel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user