Added lazy setting of arrays for osg::Geometry using vertex_array_object
This commit is contained in:
@@ -147,7 +147,8 @@ public:
|
||||
void releaseGLObjects();
|
||||
|
||||
|
||||
|
||||
void setRequiresSetArrays(bool flag) { _requiresSetArrays = flag; }
|
||||
bool getRequiresSetArrays() const { return _requiresSetArrays; }
|
||||
|
||||
|
||||
public:
|
||||
@@ -174,6 +175,8 @@ public:
|
||||
|
||||
GLBufferObject* _currentVBO;
|
||||
GLBufferObject* _currentEBO;
|
||||
|
||||
bool _requiresSetArrays;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user