Hi Joseph, The documentation for glClientActiveTexture says the index can range from 0 to GL_MAX_TEXTURE_COORDS - 1, so I believe the current behavior is correct. Here is the link to the documentation for this command on the OpenGL site:
http://www.opengl.org/sdk/docs/man/xhtml/glClientActiveTexture.xml -Farshid On Nov 19, 2007 3:20 AM, Joseph Steel <[EMAIL PROTECTED]> wrote: > > > > > In osg Ver2.2 public release osg::State::setClientActiveTextureUnit > (State.cpp, line759) the test (I think) should be: > > if (_glClientActiveTexture && unit < (unsigned int)_glMaxTextureUnits) > > and not _glMaxTextureCoords. > > I've attached a modified version of the file (osg\State.cpp) > > Joseph Steel > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
