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