diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp
index 77b34eb5462cab9f0a76e3c423f3a3e153293368..96b18381581ed33bd0356a80f86edc9ca3c278b0 100644
--- a/indra/llrender/llgl.cpp
+++ b/indra/llrender/llgl.cpp
@@ -1480,10 +1480,7 @@ void LLGLState::checkTextureChannels(const std::string& msg)
 				gFailLog << "Texture matrix in channel " << i << " corrupt." << std::endl;
 			}
 		}
-
-		
-		S32 num_texture_types = 8;
-		
+				
 		for (S32 j = (i == 0 ? 1 : 0); 
 			j < 9; j++)
 		{