Fixed typo

This commit is contained in:
Robert Osfield 2013-11-05 15:23:32 +00:00
parent ffb0a8e545
commit 2b3665f010

View File

@ -1494,7 +1494,7 @@ void Texture::computeInternalFormatWithImage(const osg::Image& image) const
case(GL_LUMINANCE) : internalFormat = GL_RED; break; // should it be swizzled to match RGBA(LUMINANCE, LUMINANCE, LUMINANCE, 1.0)? case(GL_LUMINANCE) : internalFormat = GL_RED; break; // should it be swizzled to match RGBA(LUMINANCE, LUMINANCE, LUMINANCE, 1.0)?
case(1) : internalFormat = GL_RED; break; // or sould this be GL_ALPHA? case(1) : internalFormat = GL_RED; break; // or sould this be GL_ALPHA?
case(2) : internalFormat = GL_RG; break; // should we assume GL_LUMINANCE_ALPHA? case(2) : internalFormat = GL_RG; break; // should we assume GL_LUMINANCE_ALPHA?
case(GL_LUMINANCE_ALPHA) : internalFormat = GL_RB; break; // should it be swizlled to match RGAB(LUMUNIANCE, LUMINANCE, LUMINANCE, ALPHA)? case(GL_LUMINANCE_ALPHA) : internalFormat = GL_RG; break; // should it be swizlled to match RGAB(LUMUNIANCE, LUMINANCE, LUMINANCE, ALPHA)?
case(3) : internalFormat = GL_RGB; break; case(3) : internalFormat = GL_RGB; break;
case(4) : internalFormat = GL_RGBA; break; case(4) : internalFormat = GL_RGBA; break;
default: break; default: break;