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

View File

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