From f14f58c48658407540bcfe0905811d5d1a2c292e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 17 Oct 2013 18:29:38 +0000 Subject: [PATCH] Fix for error in getting the uniform block max name length, fix suggested by Christopher Fennell. --- src/osg/Program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {