added GL_RED/GREEN/BLUE to is_color_format()
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 22 Nov 2004 19:58:59 +0000 (19:58 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 22 Nov 2004 19:58:59 +0000 (19:58 +0000)
src/mesa/main/teximage.c

index 3e0ab88f2f6d06be582f2a16aeb124155c03e329..f35b236508c6d61784911531aec92169fc61b213 100644 (file)
@@ -331,6 +331,9 @@ static GLboolean
 is_color_format(GLenum format)
 {
    switch (format) {
+      case GL_RED:
+      case GL_GREEN:
+      case GL_BLUE:
       case GL_ALPHA:
       case GL_ALPHA4:
       case GL_ALPHA8: