Added handling of GL_INTENSITY in osg::Image::computeNumComponents()

This commit is contained in:
Robert Osfield
2004-06-17 15:07:50 +00:00
parent 63aa9b857d
commit 4c0aa24526

View File

@@ -157,6 +157,7 @@ unsigned int Image::computeNumComponents(GLenum pixelFormat)
case(GL_RGBA): return 4;
case(GL_BGRA): return 4;
case(GL_LUMINANCE): return 1;
case(GL_INTENSITY): return 1;
case(GL_LUMINANCE_ALPHA): return 2;
case(GL_HILO_NV): return 2;
case(GL_DSDT_NV): return 2;