diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-11-09 23:24:25 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-11-09 23:24:25 +0000 |
commit | ce764717bc28cacbed06661c075db04241b96660 (patch) | |
tree | 1afebad1d4e18182bf6c311cd74e4755bd3ae3c5 | |
parent | c6d4a00ca953886ad2733aae849551a18e71a4a8 (diff) |
GL_BGR case was misplaced in _mesa_is_legal_format_and_type() (Jeff Hartmann)
-rw-r--r-- | src/mesa/main/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 03f5a5d842..ca6b55b6af 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.35.4.3 2000/11/05 21:24:00 brianp Exp $ */ +/* $Id: image.c,v 1.35.4.4 2000/11/09 23:24:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -334,7 +334,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: @@ -348,6 +347,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: |