mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed missing texture unload in the editor
This commit is contained in:
parent
563f1d0c52
commit
85a5fd8bc0
|
@ -2430,6 +2430,7 @@ void CEditor::ReplaceImage(const char *pFileName, int StorageType, void *pUser)
|
||||||
|
|
||||||
CEditorImage *pImg = pEditor->m_Map.m_lImages[pEditor->m_SelectedImage];
|
CEditorImage *pImg = pEditor->m_Map.m_lImages[pEditor->m_SelectedImage];
|
||||||
int External = pImg->m_External;
|
int External = pImg->m_External;
|
||||||
|
pEditor->Graphics()->UnloadTexture(pImg->m_Texture);
|
||||||
pImg->m_Texture = IGraphics::CTextureHandle();
|
pImg->m_Texture = IGraphics::CTextureHandle();
|
||||||
if(pImg->m_pData)
|
if(pImg->m_pData)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue