From 3f9e5dbfaa243f306a391ff743348ff93c7ea123 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 6 Nov 2008 14:17:12 +0000 Subject: [PATCH] From Kyle Centers, removed redundent check to _currentContext.valid(). --- include/osgViewer/ViewerBase | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgViewer/ViewerBase b/include/osgViewer/ViewerBase index f6126e79e..308c83ddc 100644 --- a/include/osgViewer/ViewerBase +++ b/include/osgViewer/ViewerBase @@ -251,7 +251,7 @@ class OSGVIEWER_EXPORT ViewerBase : public virtual osg::Object inline void releaseContext() { - if (_currentContext.valid() && _currentContext->valid()) + if (_currentContext.valid()) { _currentContext->releaseContext(); }