Commit f2431647 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

disable instancing when deactivating a vertex declaration

parent 2a42b5a5
Pipeline #893 passed with stage
......@@ -486,8 +486,16 @@ void VertexDeclaration::deactivateShaderPipeline( GLSL::Program* _prog ) const
int loc = _prog->getAttributeLocation(pElem->shaderInputName_);
if (loc != -1)
{
glDisableVertexAttribArray(loc);
if (supportsInstancedArrays() && pElem->divisor_)
{
#ifdef GL_ARB_instanced_arrays
glVertexAttribDivisor(loc, 0);
#endif
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment