From Kyle Centers, removed redundent check to _currentContext.valid().

This commit is contained in:
Robert Osfield 2008-11-06 14:17:12 +00:00
parent ad2cb03a68
commit 3f9e5dbfaa

View File

@ -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();
} }