[osg-submissions] uninitalized variables in State.cpp
Art Tevs
stud_info2 at yahoo.de
Wed Mar 5 03:21:20 PST 2008
Hi Robert,
> Thanks for changes, now merged and submitted to SVN.
>
thank you.
> The problem with initializeExtensionProcs() not
> being called is more
> of a problem though, it should be called for by
> GraphicsContext::makeCurrent and SceneView::draw.
> How are you
> rendering the OSG as you seem to be bypassing even
> SceneView.
>
Hmm, it seems that in some of my projects (hdr example
application of osgPPU) it is not called (there I do
not use any SceneView and have a custom made viewer
derived from osgViewer::Viewer and also SingleThreaded
model). In my Qt-Application it seems to work fine.
If I will be able to determine the bug, I will open a
new thread here. For now let us assume all things
works fine, because I want first be sure that it is
not a bug in my code ;-)
Best regards,
Art
> Robert.
>
> On Wed, Mar 5, 2008 at 10:53 AM, Art Tevs
> <stud_info2 at yahoo.de> wrote:
> > Hi Robert,
> >
> > in the State.cpp the variables
> _glMaxTextureCoords
> > and_glMaxTextureUnits are not initialized per
> default.
> > They are first initialized in the
> > initializeExtensionProcs() method, which is for
> some
> > reasons is not executed in my applications (most
> of
> > the time I have to do it by hand).
> >
> > Hence the value of the both variables is
> > unpredictable. I attached a patched State.cpp
> file
> > which do initialize the both variables in the
> > constructor.
> >
> > Thanks.
> >
> > Cheers,
> > Art
> >
> >
> >
> >
> >
> > Machen Sie Yahoo! zu Ihrer Startseite. Los
> geht's:
> > http://de.yahoo.com/set
> > _______________________________________________
> > osg-submissions mailing list
> > osg-submissions at lists.openscenegraph.org
> >
>
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
> >
> >
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
More information about the osg-submissions
mailing list