mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Accept a const Object in UnrefQueue
This commit is contained in:
parent
3552b3a82c
commit
afe533e670
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ namespace SceneUtil
|
|||
class UnrefWorkItem : public SceneUtil::WorkItem
|
||||
{
|
||||
public:
|
||||
std::deque<osg::ref_ptr<osg::Object> > mObjects;
|
||||
std::deque<osg::ref_ptr<const osg::Object> > mObjects;
|
||||
|
||||
virtual void doWork()
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ namespace SceneUtil
|
|||
mWorkItem = new UnrefWorkItem;
|
||||
}
|
||||
|
||||
void UnrefQueue::push(osg::Object *obj)
|
||||
void UnrefQueue::push(const osg::Object *obj)
|
||||
{
|
||||
mWorkItem->mObjects.push_back(obj);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue