From 8d6a35dbfbf7821f774fb9bde1398de063c81797 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Apr 2009 10:47:44 +0000 Subject: [PATCH] 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." --- src/osg/Image.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index 93c888156..fbba3a920 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -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;