Changed the reset of the GLExtensions::Set() in the State destructor so that it checks to see if the local _glExtensions pointer has been set up and taken ownership of the GLExtensions::Set() value

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14661 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-01-20 11:24:31 +00:00
parent 3eca5765c9
commit 0a4efa35c3

View File

@ -132,8 +132,11 @@ State::State():
State::~State() State::~State()
{ {
// delete the GLExtensions object associated with this osg::State. // delete the GLExtensions object associated with this osg::State.
GLExtensions::Set(_contextID, 0); if (_glExtensions)
_glExtensions = 0; {
GLExtensions::Set(_contextID, 0);
_glExtensions = 0;
}
//_texCoordArrayList.clear(); //_texCoordArrayList.clear();