Changed the ordering of applying OpenGL modes and attributes back to the original modes first then attributes since the it was cause a display bug on some datesets.  It seems that the modes needs enabling before glMaterial's take affect, at least on the NVidia drivers under Windows and Linux. The OpenGL reference guide doesn't mention any dependancy so I'm not sure what the official line is.  Some other OpenGl attribute and modes need to be applied in that order according to the blue book, however, drivers, at least the NVidia drivers seem require the opposite.  This may raise the spectra of before and after mode applies, but this will require extra support in osg::State and osg::StateAttribute, and would have to be handled on a per attribute basis, and possibly different of each platform.  Yuck.
Changed the ordering of applying OpenGL modes and attributes back to the original
modes first then attributes since the it was cause a display bug on some
datesets.  It seems that the modes needs enabling before glMaterial's
take affect, at least on the NVidia drivers under Windows and Linux.
The OpenGL reference guide doesn't mention any dependancy so I'm not
sure what the official line is.  Some other OpenGl attribute and modes
need to be applied in that order according to the blue book, however,
drivers, at least the NVidia drivers seem require the opposite.  This may raise
the spectra of before and after mode applies, but this will require extra
support in osg::State and osg::StateAttribute, and would have to be handled
on a per attribute basis, and possibly different of each platform.  Yuck.


jtorresfabra/osg,jtorresfabra/osg,artoolkit/osg,openscenegraph/osg,openscenegraph/osg,marchelbling/osg,scrawl/osg,marchelbling/osg,scrawl/osg,scrawl/osg,openscenegraph/osg,marchelbling/osg,tomasthoresen/osg,artoolkit/osg,scrawl/osg,artoolkit/osg,marchelbling/osg,jtorresfabra/osg,tomasthoresen/osg,jtorresfabra/osg,tomasthoresen/osg,tomasthoresen/osg,artoolkit/osg,openscenegraph/osg