From Kyle Centers, removed redundent check to _currentContext.valid().
This commit is contained in:
parent
ad2cb03a68
commit
3f9e5dbfaa
@ -251,7 +251,7 @@ class OSGVIEWER_EXPORT ViewerBase : public virtual osg::Object
|
|||||||
|
|
||||||
inline void releaseContext()
|
inline void releaseContext()
|
||||||
{
|
{
|
||||||
if (_currentContext.valid() && _currentContext->valid())
|
if (_currentContext.valid())
|
||||||
{
|
{
|
||||||
_currentContext->releaseContext();
|
_currentContext->releaseContext();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user