From 6f22082c0b7398e90a3b66ad66d39bc8aa7dc567 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 26 Oct 2004 18:11:26 +0000 Subject: [PATCH] Removed the _initVisitor traversal for update() to prevent OpenGL being called at the wrong time. --- src/osgUtil/SceneView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgUtil/SceneView.cpp b/src/osgUtil/SceneView.cpp index 644636cbb..2b19df588 100644 --- a/src/osgUtil/SceneView.cpp +++ b/src/osgUtil/SceneView.cpp @@ -163,7 +163,9 @@ void SceneView::init() void SceneView::update() { - if (!_initCalled) init(); + // comment out since the init traversal by default with do OpenGL calls, + // which you definately don't want to call during update(). + // if (!_initCalled) init(); if (_sceneData.valid() && _updateVisitor.valid())