Fix for error in getting the uniform block max name length, fix suggested by Christopher Fennell.

This commit is contained in:
Robert Osfield 2013-10-17 18:29:39 +00:00
parent 7de6a0c9e2
commit a97e092619

View File

@ -674,7 +674,7 @@ void Program::PerContextProgram::linkProgram(osg::State& state)
_extensions->glGetProgramiv(_glProgramHandle, GL_ACTIVE_UNIFORM_BLOCKS,
reinterpret_cast<GLint*>(&activeUniformBlocks));
_extensions->glGetProgramiv(_glProgramHandle,
GL_ACTIVE_UNIFORM_MAX_LENGTH,
GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH,
&maxBlockNameLen);
if (maxBlockNameLen > 0)
{