proper cleanup of dynamically loaded texture
This commit is contained in:
parent
1fe29664c9
commit
86a9bc0c84
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue