{
if (theCtx->ActiveProgram().IsNull())
{
- #if !defined(GL_ES_VERSION_2_0)
if (theCtx->core11ffp != NULL)
{
bindFixed (theCtx, theAttribute, theNbComp, theDataType, theStride, theOffset);
}
else
- #endif
{
// OpenGL handles vertex attribute setup independently from active GLSL program,
// but OCCT historically requires program to be bound beforehand (this check could be removed in future).
{
if (theCtx->ActiveProgram().IsNull())
{
- #if !defined(GL_ES_VERSION_2_0)
if (theCtx->core11ffp != NULL)
{
unbindFixed (theCtx, theAttribute);
}
- #endif
return;
}
theCtx->core20fwd->glDisableVertexAttribArray (theAttribute);
}
-#if !defined(GL_ES_VERSION_2_0)
// =======================================================================
// function : bindFixed
// purpose :
// invalidate FFP material state after GL_COLOR_MATERIAL has modified it (took values from the vertex color)
theCtx->ShaderManager()->UpdateMaterialState();
}
-#endif