diff options
Diffstat (limited to 'linden/indra/llwindow/llgl.cpp')
-rw-r--r-- | linden/indra/llwindow/llgl.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/linden/indra/llwindow/llgl.cpp b/linden/indra/llwindow/llgl.cpp index a059cd4..229fdf2 100644 --- a/linden/indra/llwindow/llgl.cpp +++ b/linden/indra/llwindow/llgl.cpp | |||
@@ -1152,7 +1152,7 @@ void LLGLState::checkTextureChannels() | |||
1152 | llwarns << "Texture matrix in channel " << i << " corrupt." << llendl; | 1152 | llwarns << "Texture matrix in channel " << i << " corrupt." << llendl; |
1153 | } | 1153 | } |
1154 | 1154 | ||
1155 | for (S32 j = (i == 0 ? 2 : 0); j < 8; j++) | 1155 | for (S32 j = (i == 0 ? 1 : 0); j < 8; j++) |
1156 | { | 1156 | { |
1157 | if (glIsEnabled(value[j])) | 1157 | if (glIsEnabled(value[j])) |
1158 | { | 1158 | { |
@@ -1177,6 +1177,23 @@ void LLGLState::checkClientArrays(U32 data_mask) | |||
1177 | #if LL_DEBUG_GL | 1177 | #if LL_DEBUG_GL |
1178 | stop_glerror(); | 1178 | stop_glerror(); |
1179 | BOOL error = FALSE; | 1179 | BOOL error = FALSE; |
1180 | |||
1181 | GLint active_texture; | ||
1182 | glGetIntegerv(GL_CLIENT_ACTIVE_TEXTURE_ARB, &active_texture); | ||
1183 | |||
1184 | if (active_texture != GL_TEXTURE0_ARB) | ||
1185 | { | ||
1186 | llwarns << "Client active texture corrupted: " << active_texture << llendl; | ||
1187 | error = TRUE; | ||
1188 | } | ||
1189 | |||
1190 | glGetIntegerv(GL_ACTIVE_TEXTURE_ARB, &active_texture); | ||
1191 | if (active_texture != GL_TEXTURE0_ARB) | ||
1192 | { | ||
1193 | llwarns << "Active texture corrupted: " << active_texture << llendl; | ||
1194 | error = TRUE; | ||
1195 | } | ||
1196 | |||
1180 | static const char* label[] = | 1197 | static const char* label[] = |
1181 | { | 1198 | { |
1182 | "GL_VERTEX_ARRAY", | 1199 | "GL_VERTEX_ARRAY", |