TextureAtlas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "TextureAtlas_precompiled.h"
|
||||
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <AzCore/Serialization/EditContext.h>
|
||||
#include <AzCore/IO/FileIO.h>
|
||||
@@ -239,7 +237,11 @@ namespace TextureAtlasNamespace
|
||||
temp.m_atlas->GetTexture().reset();
|
||||
}
|
||||
// Delete the atlas
|
||||
SAFE_DELETE(temp.m_atlas);
|
||||
if (temp.m_atlas)
|
||||
{
|
||||
delete temp.m_atlas;
|
||||
temp.m_atlas = NULL;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user