Code: Select all
GLint maxlen = 0;
glGetProgramiv(Program2, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxlen);
if (maxlen < 0)
{
os::Printer::log("GLSL: failed to retrieve uniform information", ELL_ERROR);
return false;
}
maxlen = core::max_(maxlen,36); // gl_MVPInv for Intel drivers