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--
branch : nfb
This commit is contained in:
2013-07-27 14:57:50 -07:00
parent 18e44dc835
commit 14b6a2f56c

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;