From Eric Sokolowsky, "src/osg/Image.cpp is missing the GL_RGBA8 image type when calculating the number of components in an image. It is added here."

Merged from svn trunk using:

svn merge -r 10061:10062 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osg/Image.cpp
This commit is contained in:
Robert Osfield
2009-04-22 10:49:56 +00:00
parent 3d4ff7ae02
commit a15b93432a

View File

@@ -319,6 +319,7 @@ unsigned int Image::computeNumComponents(GLenum pixelFormat)
case(GL_RGBA32F_ARB): return 4;
case(GL_RGBA): return 4;
case(GL_BGRA): return 4;
case(GL_RGBA8): return 4;
case(GL_LUMINANCE): return 1;
case(GL_LUMINANCE4): return 1;
case(GL_LUMINANCE8): return 1;