On Nov 26, 2007 1:34 PM, Tim Moore <[EMAIL PROTECTED]> wrote:
> That's what I thought, but starting on line 673 in DatabasePager.cpp, in the
> run function:
>                         if (gc)
>                         {
>                             osg::GraphicsThread* gt = gc->getGraphicsThread();
>                             if (gt)
>                             {
>                                 gt->add(new 
> DatabasePager::CompileOperation(this));
>                             }
>                             else
>                             {
>                                 gc->makeCurrent();
>
>                                 compileAllGLObjects(*(gc->getState()));
>
>                                 gc->releaseContext();
>                             }
>                         }

Ahh OK, this is the exception, more of an experiment than a code path
usually used.  Normally the gc will be NULL, it only not be NULL if
you attach a pbuffer graphics context to do the compilation and it
doesn't its own graphics thread and this isn't the usual usage - if
you use a compile context then its typically used with its own thread.
 If you don't use a compile context the old compile paths are used and
everything should behave as normal.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to