Verify vert attrib disable state if only running in non-fixed-function.

This commit is contained in:
Shyotl
2012-04-12 10:37:37 -05:00
parent 06068a0361
commit 1d402bfe39

View File

@@ -1896,7 +1896,7 @@ void LLGLState::checkClientArrays(const std::string& msg, U32 data_mask)
glClientActiveTextureARB(GL_TEXTURE0_ARB);
gGL.getTexUnit(0)->activate();
if (gGLManager.mHasVertexShader)
if (gGLManager.mHasVertexShader && LLGLSLShader::sNoFixedFunction)
{ //make sure vertex attribs are all disabled
GLint count;
glGetIntegerv(GL_MAX_VERTEX_ATTRIBS_ARB, &count);