Example #1
0
void TextureManager::onDeviceReset()
{
	for(TexturesIter it = m_textures.begin(); it != m_textures.end(); ++it)
	{
		TextureWeakPtr weak_tex = it->second;
		if (!weak_tex.expired())
		{
			TexturePtr t = weak_tex.lock();
			t->onDeviceReset();
		}
	}
}