From Wojciech Lewandowski, "ref_ptr usage changes made on 9th of June broke VirtualProgram used in osgShaderCompositor example. Taking the opportunity I modified the code a little to use earth sphere as default model. Cow.osg used previously was not looking good in advanced example. I also changed default to advanced example, because its more informative with labels describing virtual programs used to render the objects."
This commit is contained in:
@@ -68,7 +68,7 @@ osg::Shader * VirtualProgram::setShader
|
||||
shaderCurrent = shaderNew;
|
||||
}
|
||||
|
||||
return shaderCurrent.release();
|
||||
return shaderCurrent.get();
|
||||
}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void VirtualProgram::apply( osg::State & state ) const
|
||||
|
||||
Reference in New Issue
Block a user