From Alexander Irion, "Added missing format GL_ALPHA to Image::computeFormatDataType()."

This commit is contained in:
Robert Osfield
2012-02-07 12:37:48 +00:00
parent 4d69577228
commit a9baf19f32

View File

@@ -443,7 +443,8 @@ GLenum Image::computeFormatDataType(GLenum pixelFormat)
case GL_RGBA:
case GL_RGB:
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA: return GL_UNSIGNED_BYTE;
case GL_LUMINANCE_ALPHA:
case GL_ALPHA: return GL_UNSIGNED_BYTE;
default:
{