Thanks Ferdi, changes merged and submitted to SVN.
On Wed, Dec 3, 2008 at 9:18 AM, Ferdi Smit <[EMAIL PROTECTED]> wrote: > Image.cpp didn't handle the integer data types correctly in the function: > > unsigned int Image::computeNumComponents(GLenum pixelFormat) > > so I added these types to the switch statement: > > case(GL_RED_INTEGER_EXT): return 1; > case(GL_GREEN_INTEGER_EXT): return 1; > case(GL_BLUE_INTEGER_EXT): return 1; > case(GL_ALPHA_INTEGER_EXT): return 1; > case(GL_RGB_INTEGER_EXT): return 3; > case(GL_RGBA_INTEGER_EXT): return 4; > case(GL_BGR_INTEGER_EXT): return 3; > case(GL_BGRA_INTEGER_EXT): return 4; > case(GL_LUMINANCE_INTEGER_EXT): return 1; > case(GL_LUMINANCE_ALPHA_INTEGER_EXT): return 2; > > That's all... now it computes the number of components and, thus, the image > size correctly. > > -- > Regards, > > Ferdi Smit > INS3 Visualization and 3D Interfaces > CWI Amsterdam, The Netherlands > > > _______________________________________________ > 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
