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."

This commit is contained in:
Robert Osfield 2009-04-22 10:47:44 +00:00
parent 9407def083
commit 8d6a35dbfb

View File

@ -318,6 +318,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;