From 7d816362e67ad5cfe7fa9b4e3219fa3547d5a58c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 May 2016 15:07:02 +0100 Subject: [PATCH] Fixed shadows warning --- examples/osgpoints/osgpoints.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgpoints/osgpoints.cpp b/examples/osgpoints/osgpoints.cpp index ca2fb2a72..3df360f03 100644 --- a/examples/osgpoints/osgpoints.cpp +++ b/examples/osgpoints/osgpoints.cpp @@ -195,7 +195,7 @@ int main( int argc, char **argv ) if (shader) { - osg::StateSet* stateset = loadedModel->getOrCreateStateSet(); + osg::StateSet* ss = loadedModel->getOrCreateStateSet(); /////////////////////////////////////////////////////////////////// // vertex shader using just Vec4 coefficients @@ -209,7 +209,7 @@ int main( int argc, char **argv ) osg::Program* program = new osg::Program; - stateset->setAttribute(program); + ss->setAttribute(program); osg::Shader* vertex_shader = new osg::Shader(osg::Shader::VERTEX, vertexShaderSource); program->addShader(vertex_shader);