[osg-submissions] uninitalized variables in State.cpp

Art Tevs stud_info2 at yahoo.de
Wed Mar 5 02:53:41 PST 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: State.cpp
Type: text/x-c++src
Size: 30324 bytes
Desc: 259135526-State.cpp
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080305/36aa25e0/attachment-0001.cpp 


More information about the osg-submissions mailing list