Removed setProgram from osg::StateSet as Program works just fine right now
as a standard osg::StateAttribute and set in a StateSet with setAttribute.
This commit is contained in:
@@ -295,17 +295,6 @@ class OSG_EXPORT StateSet : public Object
|
||||
/** return the const list of all Uniforms contained in this const StateSet.*/
|
||||
inline const UniformList& getUniformList() const { return _uniformList; }
|
||||
|
||||
|
||||
void setProgram(Program* program) { _program = program; }
|
||||
|
||||
Program* getProgram() { return _program.get(); }
|
||||
|
||||
const Program* getProgram() const { return _program.get(); }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
enum RenderingHint
|
||||
{
|
||||
DEFAULT_BIN = 0,
|
||||
@@ -385,7 +374,6 @@ class OSG_EXPORT StateSet : public Object
|
||||
TextureAttributeList _textureAttributeList;
|
||||
|
||||
UniformList _uniformList;
|
||||
osg::ref_ptr<osg::Program> _program;
|
||||
|
||||
inline ModeList& getOrCreateTextureModeList(unsigned int unit)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user