From cc78975349f37745146d1d925d10730625e367db Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Sat, 27 Jul 2013 14:57:50 -0700 Subject: [PATCH] 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 --- KREngine/kraken/KRTextureManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/KREngine/kraken/KRTextureManager.cpp b/KREngine/kraken/KRTextureManager.cpp index e6fb8f5..c81d104 100644 --- a/KREngine/kraken/KRTextureManager.cpp +++ b/KREngine/kraken/KRTextureManager.cpp @@ -63,6 +63,7 @@ void KRTextureManager::_clearGLState() m_wrapModeS[i] = 0; m_wrapModeT[i] = 0; m_maxAnisotropy[i] = -1.0f; + selectTexture(i, NULL); } m_iActiveTexture = -1;