summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-11-22 19:58:59 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-11-22 19:58:59 +0000
commitebe8d3152d864b9f4a0501c868c54e472c9d67a4 (patch)
tree0847d9e151abc2ad31e04e7e2bea285061fa5c66
parentd0a82a652ddf0a8621e3e9c8be1e47e643e7af7a (diff)
added GL_RED/GREEN/BLUE to is_color_format()
-rw-r--r--src/mesa/main/teximage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 3e0ab88f2f..f35b236508 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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: