Fixed the setting of the Drawable modes
This commit is contained in:
parent
99fc347212
commit
88f9e7dda8
@ -310,6 +310,8 @@ public:
|
||||
break;
|
||||
case DatabasePager::USE_DISPLAY_LISTS:
|
||||
_mode = _mode | osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS;
|
||||
_mode = _mode | osgUtil::GLObjectsVisitor::SWITCH_OFF_VERTEX_BUFFER_OBJECTS;
|
||||
_mode = _mode & ~osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS;
|
||||
break;
|
||||
case DatabasePager::USE_VERTEX_BUFFER_OBJECTS:
|
||||
_mode = _mode | osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS;
|
||||
@ -317,6 +319,8 @@ public:
|
||||
case DatabasePager::USE_VERTEX_ARRAYS:
|
||||
_mode = _mode & ~osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS;
|
||||
_mode = _mode & ~osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS;
|
||||
_mode = _mode | osgUtil::GLObjectsVisitor::SWITCH_OFF_DISPLAY_LISTS;
|
||||
_mode = _mode | osgUtil::GLObjectsVisitor::SWITCH_OFF_VERTEX_BUFFER_OBJECTS;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user