Fixed shadows warning

This commit is contained in:
Robert Osfield 2016-05-26 15:07:02 +01:00
parent dbce12842e
commit 7d816362e6

View File

@ -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);