[osg-submissions] State.cpp
Farshid Lashkari
flashk at gmail.com
Mon Nov 19 09:06:38 PST 2007
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 <joseph.steel at simutecsystems.com> 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
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
More information about the osg-submissions
mailing list