From 2b3665f010757ea7e809c7325d70a2cfc9e4f80a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 5 Nov 2013 15:23:32 +0000 Subject: [PATCH] Fixed typo --- src/osg/Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index 693b2d394..46819fe9b 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -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(1) : internalFormat = GL_RED; break; // or sould this be GL_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(4) : internalFormat = GL_RGBA; break; default: break;