Changeset 9992
- Timestamp:
- 04/08/09 15:16:44 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/CompositeViewer.cpp
r9868 r9992 124 124 bool alreadyRealized = isRealized(); 125 125 126 bool threadsWereRu inning = _threadsRunning;127 if (threadsWereRu inning) stopThreading();126 bool threadsWereRunning = _threadsRunning; 127 if (threadsWereRunning) stopThreading(); 128 128 129 129 _views.push_back(view); … … 172 172 } 173 173 174 if (threadsWereRu inning) startThreading();174 if (threadsWereRunning) startThreading(); 175 175 } 176 176 … … 183 183 if (*itr == view) 184 184 { 185 bool threadsWereRu inning = _threadsRunning;186 if (threadsWereRu inning) stopThreading();185 bool threadsWereRunning = _threadsRunning; 186 if (threadsWereRunning) stopThreading(); 187 187 188 188 view->_viewerBase = 0; … … 190 190 _views.erase(itr); 191 191 192 if (threadsWereRu inning) startThreading();192 if (threadsWereRunning) startThreading(); 193 193 194 194 return;
