From eaba09027ebb2f39e046bf4aa3442a2303aeef2a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 19 Nov 2008 20:34:53 +0000 Subject: [PATCH] Reverted Kyle Centers mistaken patch that removed a _currentContext->valid() that was actually required. --- include/osgViewer/ViewerBase | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgViewer/ViewerBase b/include/osgViewer/ViewerBase index 308c83ddc..f6126e79e 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()) + if (_currentContext.valid() && _currentContext->valid()) { _currentContext->releaseContext(); }