Moved Stae::setUseVertexAttributeAliasing(bool) implementation to .cpp an added call to _globalVertexArrayState->assignAllDispatchers(); to ensure state is consistent
This commit is contained in:
@@ -252,7 +252,7 @@ class OSG_EXPORT State : public Referenced
|
||||
Polytope getViewFrustum() const;
|
||||
|
||||
|
||||
void setUseVertexAttributeAliasing(bool flag) { _useVertexAttributeAliasing = flag; }
|
||||
void setUseVertexAttributeAliasing(bool flag);
|
||||
bool getUseVertexAttributeAliasing() const { return _useVertexAttributeAliasing ; }
|
||||
|
||||
typedef std::vector<VertexAttribAlias> VertexAttribAliasList;
|
||||
|
||||
@@ -170,6 +170,12 @@ State::~State()
|
||||
//_vertexAttribArrayList.clear();
|
||||
}
|
||||
|
||||
void State::setUseVertexAttributeAliasing(bool flag)
|
||||
{
|
||||
_useVertexAttributeAliasing = flag;
|
||||
if (_globalVertexArrayState.valid()) _globalVertexArrayState->assignAllDispatchers();
|
||||
}
|
||||
|
||||
void State::initializeExtensionProcs()
|
||||
{
|
||||
if (_extensionProcsInitialized) return;
|
||||
|
||||
Reference in New Issue
Block a user