Added support for releasing GLObjects, and renamed DisplayListVisitor the
GLObjectVisitor to better fit its function, and added support for releasing objects as well as compiling them.
This commit is contained in:
@@ -183,6 +183,11 @@ void ProgramObject::dirtyShaderObjects()
|
||||
}
|
||||
}
|
||||
|
||||
void ProgramObject::releaseGLObjects(osg::State* state) const
|
||||
{
|
||||
const_cast<ProgramObject*>(this)->dirtyShaderObjects();
|
||||
}
|
||||
|
||||
|
||||
void ProgramObject::addShader( ShaderObject* shadObj )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user