From 9473d80345b22c6825cc077c4226bb0daf86f6b9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 Feb 2006 16:50:47 +0000 Subject: [PATCH] Moved the intialization variable reset to end of the init funciton to avoid multi-thread initialization from producing different results. --- src/osg/Notify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/Notify.cpp b/src/osg/Notify.cpp index 3cd3b3a12..62333f42b 100644 --- a/src/osg/Notify.cpp +++ b/src/osg/Notify.cpp @@ -39,8 +39,6 @@ bool osg::initNotifyLevel() if (s_NotifyInit) return true; - s_NotifyInit = true; - // g_NotifyLevel // ============= @@ -73,6 +71,8 @@ bool osg::initNotifyLevel() } + s_NotifyInit = true; + return true; }