fixed missing texture unload in the editor

This commit is contained in:
Magnus Auvinen 2012-08-12 14:32:37 +02:00
parent 563f1d0c52
commit 85a5fd8bc0

View file

@ -2430,6 +2430,7 @@ void CEditor::ReplaceImage(const char *pFileName, int StorageType, void *pUser)
CEditorImage *pImg = pEditor->m_Map.m_lImages[pEditor->m_SelectedImage];
int External = pImg->m_External;
pEditor->Graphics()->UnloadTexture(pImg->m_Texture);
pImg->m_Texture = IGraphics::CTextureHandle();
if(pImg->m_pData)
{