diff --git a/src/osg/VertexProgram.cpp b/src/osg/VertexProgram.cpp index 1ba00b21b..b2a0a1028 100644 --- a/src/osg/VertexProgram.cpp +++ b/src/osg/VertexProgram.cpp @@ -67,7 +67,7 @@ void VertexProgram::apply(State& state) const _vertexProgram.length(), _vertexProgram.c_str()); // Check for errors - int errorposition; + GLint errorposition; ::glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorposition); if (errorposition != -1) {