From opengl docs:

glUniform1i and glUniform1iv are the only two functions
that may be used to load uniform variables defined as sampler
types. Loading samplers with any other function will result in a
GL_INVALID_OPERATION error.

And osg uses this calls only for int uniforms or sampler uniforms, for unsigned 
it calls glUniformui* funcitons.

Cheers.

21.02.2012, 17:45, "Ethan Fahy" <[email protected]>:
> By the way I had originally put the TEXTURE_UNIT as a const unsigned int 
> because of the 10th post in this thread:
> http://forum.openscenegraph.org/viewtopic.php?t=8273
> as it was suggested by Jean-Sebastien.  Not sure if there is some disconnect 
> that I am still not getting but changing it to a regular int seems to have 
> solved my problems so I will just move forward using a regular int.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=45637#45637
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to