diff --git a/src/osg/Program.cpp b/src/osg/Program.cpp index ae1515916..bfa8bd83d 100644 --- a/src/osg/Program.cpp +++ b/src/osg/Program.cpp @@ -674,7 +674,7 @@ void Program::PerContextProgram::linkProgram(osg::State& state) _extensions->glGetProgramiv(_glProgramHandle, GL_ACTIVE_UNIFORM_BLOCKS, reinterpret_cast(&activeUniformBlocks)); _extensions->glGetProgramiv(_glProgramHandle, - GL_ACTIVE_UNIFORM_MAX_LENGTH, + GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH, &maxBlockNameLen); if (maxBlockNameLen > 0) {