When flushing texture cache, also remove device textures

master
krzys-h 2015-08-13 23:49:01 +02:00
parent 1c461ce1c8
commit 92591c23b6
1 changed files with 2 additions and 0 deletions

View File

@ -2524,6 +2524,8 @@ void CEngine::DeleteTexture(const Texture& tex)
void CEngine::FlushTextureCache()
{
m_device->DestroyAllTextures();
m_texNameMap.clear();
m_revTexNameMap.clear();
m_texBlacklist.clear();