proper cleanup of dynamically loaded texture

This commit is contained in:
Mark Vejvoda 2010-04-05 19:48:26 +00:00
parent 1fe29664c9
commit 86a9bc0c84
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ Logger::~Logger(){
void Logger::cleanupLoadingTexture() {
if(loadingTexture!=NULL)
{
delete loadingTexture;
Renderer &renderer= Renderer::getInstance();
Texture *genericTexture = loadingTexture;
renderer.endTexture(rsGlobal,&genericTexture);
//delete loadingTexture;
loadingTexture=NULL;
}
}