Fixed an issue that caused some textures to be unloaded permanently when streaming a world. This manifested itself in cases where a texture unit would hold only a single texture for many frames, such as in scenes where only one object had a normal map in view.

--HG--
extra : source : 5b9b6d6d1c0f9d35490f0739670d729fb6ea1c9c
This commit is contained in:
2013-07-27 14:57:50 -07:00
parent 5b738a824f
commit cc78975349

View File

@@ -63,6 +63,7 @@ void KRTextureManager::_clearGLState()
m_wrapModeS[i] = 0; m_wrapModeS[i] = 0;
m_wrapModeT[i] = 0; m_wrapModeT[i] = 0;
m_maxAnisotropy[i] = -1.0f; m_maxAnisotropy[i] = -1.0f;
selectTexture(i, NULL);
} }
m_iActiveTexture = -1; m_iActiveTexture = -1;