Hi Juan, Could you post your fix as a whole modified source file, as you email is rather difficult to follow.
Cheers, Robert. On Mon, Jan 18, 2010 at 10:05 AM, Juan Hernando <[email protected]> wrote: > Dear all, > Doing some tests with osgvolume we've found a typo in some code dealing with > RGBA images. It's located at include/osg/ImageUtils line 88: > case(GL_RGBA): { for(unsigned int i=0;i<num;++i) { float > r = float(*data)*scale; float g = float(*(data+1))*scale; float b = > float(*(data+2))*scale; float a = float(*(data+3))*scale; > operation.rgba(r,g,b,a); *data++ = T(r*inv_scale); *data++ = > T(g*inv_scale); *data++ = T(g*inv_scale); *data++ = T(a*inv_scale); } > } break; > > Notice that g*inv_scale appears instead of b*inv_scale near the end of the > line. > I've checked through the web interface that the trunk still has the typo. > > Regards, > Juan > _______________________________________________ > 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

