From Andy Skinner, Added ~GLExtensions to clear cached values for context ID
This commit is contained in:
parent
8a29c504e4
commit
1ee6d476f8
@ -813,6 +813,9 @@ class OSG_EXPORT GLExtensions : public osg::Referenced
|
|||||||
|
|
||||||
/** convenience wrapper around glObjectLabel that calls glObjectLabel if it's supported and using std::string as a label parameter.*/
|
/** convenience wrapper around glObjectLabel that calls glObjectLabel if it's supported and using std::string as a label parameter.*/
|
||||||
void debugObjectLabel(GLenum identifier, GLuint name, const std::string& label) const { if (glObjectLabel && !label.empty()) glObjectLabel(identifier, name, label.size(), label.c_str()); }
|
void debugObjectLabel(GLenum identifier, GLuint name, const std::string& label) const { if (glObjectLabel && !label.empty()) glObjectLabel(identifier, name, label.size(), label.c_str()); }
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual ~GLExtensions();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -1284,6 +1284,13 @@ GLExtensions::GLExtensions(unsigned int in_contextID):
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLExtensions::~GLExtensions()
|
||||||
|
{
|
||||||
|
// Remove s_gl*List
|
||||||
|
s_glExtensionSetList[contextID] = ExtensionSet();
|
||||||
|
s_glRendererList[contextID] = std::string();
|
||||||
|
s_glInitializedList[contextID] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++-friendly convenience methods
|
// C++-friendly convenience methods
|
||||||
|
Loading…
Reference in New Issue
Block a user