mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
proper cleanup of dynamically loaded texture
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user