[osg-users] Fwd: SKYBOX ?

Robert Osfield robert.osfield at gmail.com
Thu Sep 4 02:22:49 PDT 2008


On Wed, Sep 3, 2008 at 7:27 PM, Jeremy Moles <jeremy at emperorlinux.com> wrote:
> In your defense, however, I'm not able to actually get any test code for
> Extensions working at all. Some of the examples create Extensions
> objects (osgvertexprogram, osgmultitexture), but they never return a
> valid pointer--at least for me.

The Extensions objects will be null until they are first access from a
thread that has a valid graphics context, its only once you have a
graphics context that you can do any OpenGL command including checking
for extensions.

So query the extensions object after realize and you should have success.

Robert.



More information about the osg-users mailing list