-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Osfield wrote:
> On Nov 26, 2007 1:34 PM, Tim Moore <[EMAIL PROTECTED]> wrote:
>> 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.
Got it. I didn't follow the GraphicsContext code far enough to see that
setCompileContext
isn't normally called for an active context.
Thanks for clearing up my confusion!
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHSvYHeDhWHdXrDRURAsj5AKDWct5q3JYz4cZbrZeVLhAu0Cu3UACfWB3S
CZjiq0I/tQpjm6QI8gW2Ix4=
=Qt9d
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org