diff options
Diffstat (limited to 'src/mesa/main/config.h')
-rw-r--r-- | src/mesa/main/config.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 35a0dded6ad..901d614b10b 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -1,4 +1,4 @@ -/* $Id: config.h,v 1.20 2000/10/28 18:34:48 brianp Exp $ */ +/* $Id: config.h,v 1.21 2000/10/28 20:41:13 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -162,12 +162,18 @@ * Bits per color channel (must be 8 at this time!) */ #define CHAN_BITS 8 -#define CHAN_MAX ((1 << CHAN_BITS) - 1) -#define CHAN_MAXF ((GLfloat) CHAN_MAX) #if CHAN_BITS == 8 typedef GLubyte GLchan; +#define CHAN_MAX 255 +#define CHAN_MAXF 255.0F #elif CHAN_BITS == 16 typedef GLushort GLchan; +#define CHAN_MAX 65535 +#define CHAN_MAXF 65535.0F +#elif CHAN_BITS == 32 + typedef GLfloat GLchan; +#define CHAN_MAX 1.0 +#define CHAN_MAXF 1.0F #else #error illegal number of color channel bits #endif |