summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-10-26 21:48:37 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-10-26 21:48:37 +0000
commitfeb83f991ec8c95e665afcbc811007394f336032 (patch)
tree12096b6c075b8b15b199b61507177dccab136336
parent5c4f8bdfc7438129162a13fe30479784475fa67f (diff)
added GL_BGR case to bytes_per_pixel()
-rw-r--r--src/glu/mesa/mipmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glu/mesa/mipmap.c b/src/glu/mesa/mipmap.c
index e5efc6240f5..69ee042f5c5 100644
--- a/src/glu/mesa/mipmap.c
+++ b/src/glu/mesa/mipmap.c
@@ -1,8 +1,8 @@
-/* $Id: mipmap.c,v 1.7 2000/07/11 14:11:04 brianp Exp $ */
+/* $Id: mipmap.c,v 1.7.4.1 2000/10/26 21:48:37 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.3
+ * Version: 3.4
* Copyright (C) 1995-2000 Brian Paul
*
* This library is free software; you can redistribute it and/or
@@ -576,6 +576,7 @@ bytes_per_pixel(GLenum format, GLenum type)
n = 2;
break;
case GL_RGB:
+ case GL_BGR:
n = 3;
break;
case GL_RGBA: