Show
Ignore:
Timestamp:
10/24/05 15:46:31 (9 years ago)
Author:
robert
Message:

Fixed compile warnings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgpoints/osgpoints.cpp

    r4395 r4600  
    214214            "}\n"; 
    215215 
     216 
     217 
     218        osg::Program* program = new osg::Program; 
     219        stateset->setAttribute(program); 
     220 
     221        osg::Shader* vertex_shader = new osg::Shader(osg::Shader::VERTEX, vertexShaderSource); 
     222        program->addShader(vertex_shader); 
     223 
     224#if 0 
    216225        ////////////////////////////////////////////////////////////////// 
    217226        // fragment shader 
     
    223232            "}\n"; 
    224233 
    225  
    226         osg::Program* program = new osg::Program; 
    227         stateset->setAttribute(program); 
    228  
    229         osg::Shader* vertex_shader = new osg::Shader(osg::Shader::VERTEX, vertexShaderSource); 
    230         program->addShader(vertex_shader); 
    231  
    232         //osg::Shader* fragment_shader = new osg::Shader(osg::Shader::FRAGMENT, fragmentShaderSource); 
    233         //program->addShader(fragment_shader); 
     234        osg::Shader* fragment_shader = new osg::Shader(osg::Shader::FRAGMENT, fragmentShaderSource); 
     235        program->addShader(fragment_shader); 
     236#endif 
    234237    } 
    235238