summaryrefslogtreecommitdiff
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-11-09 23:25:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-11-09 23:25:06 +0000
commit3d960a0d84be0ffdd491dd37ff80bedf4a44fe92 (patch)
treecc9c3a61c79d4fc263f7d54ed4b9c37cce96b2dc /src/mesa/main/image.c
parent71be653edceb45c0afd4240a1d16b5d1cb92471d (diff)
GL_BGR case was misplaced in _mesa_is_legal_format_and_type() (Jeff Hartmann)
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 1711a75eab..d006b09f9f 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.46 2000/10/30 16:32:43 brianp Exp $ */
+/* $Id: image.c,v 1.47 2000/11/09 23:25:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -340,7 +340,6 @@ _mesa_is_legal_format_and_type( GLenum format, GLenum type )
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
case GL_DEPTH_COMPONENT:
- case GL_BGR:
switch (type) {
case GL_BYTE:
case GL_UNSIGNED_BYTE:
@@ -354,6 +353,7 @@ _mesa_is_legal_format_and_type( GLenum format, GLenum type )
return GL_FALSE;
}
case GL_RGB:
+ case GL_BGR:
switch (type) {
case GL_BYTE:
case GL_UNSIGNED_BYTE: