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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user