void CGUITextureManager::Flush() { CSingleLock lock(g_graphicsContext); ivecTextures i; i = m_vecTextures.begin(); while (i != m_vecTextures.end()) { CTextureMap* pMap = *i; pMap->Flush(); if (pMap->IsEmpty() ) { delete pMap; i = m_vecTextures.erase(i); } else { ++i; } } }
void CGUITextureManager::Flush() { CSingleLock lock(CServiceBroker::GetWinSystem()->GetGfxContext()); ivecTextures i; i = m_vecTextures.begin(); while (i != m_vecTextures.end()) { CTextureMap* pMap = *i; pMap->Flush(); if (pMap->IsEmpty() ) { delete pMap; i = m_vecTextures.erase(i); } else { ++i; } } }