From ebd2bb6a19012d921f35a0349f5ef5d08291f989 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 13 Sep 2006 14:55:53 +0000 Subject: [PATCH] Added extra comment explaining where state reset() should be called. --- examples/osgsimplepager/osgsimplepager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osgsimplepager/osgsimplepager.cpp b/examples/osgsimplepager/osgsimplepager.cpp index 05c0f384f..2a48c8372 100644 --- a/examples/osgsimplepager/osgsimplepager.cpp +++ b/examples/osgsimplepager/osgsimplepager.cpp @@ -262,7 +262,8 @@ int main( int argc, char **argv ) // do a flush to delete all the OpenGL objects that have been deleted or released from the scene graph. sceneView->flushAllDeletedGLObjects(); - // reset the osg::State so that next time its used its in a cleaned state. + // if you are reusing the same StateSet then you'll need to reset the osg::State as well so that next time its used its in a cleaned state. + // here we are uses a new SceneView for each new graphics context so we don't need the reset(). // sceneView->getState()->reset(); }