Fix for error in getting the uniform block max name length, fix suggested by Christopher Fennell.
This commit is contained in:
parent
7de6a0c9e2
commit
a97e092619
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user