diff options
author | Brian Paul <[email protected]> | 2011-09-17 16:31:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-20 20:17:42 -0600 |
commit | 4d53fb525db56d0695eaa5b91bd8f0cefbc25866 (patch) | |
tree | c2bb688ad1a6d0523436e4724f073f67a696c12c /src/mesa/drivers/dri | |
parent | ef275f907c94be776bb5eed14ae97bfb6b537173 (diff) |
mesa: move last bits of GLchan stuff into swrast
This removes the last remnants of the GLchan datatype and associated
macros out of core Mesa and into swrast.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/swrast/swrast_span.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/swrast/swrast_span.c b/src/mesa/drivers/dri/swrast/swrast_span.c index c7d0bfdac72..772d09f5ae6 100644 --- a/src/mesa/drivers/dri/swrast/swrast_span.c +++ b/src/mesa/drivers/dri/swrast/swrast_span.c @@ -45,7 +45,7 @@ static const GLubyte kernel[16] = { #if DITHER #define DITHER_COMP(X, Y) kernel[((X) & 0x3) | (((Y) & 0x3) << 2)] -#define DITHER_CLAMP(X) (((X) < CHAN_MAX) ? (X) : CHAN_MAX) +#define DITHER_CLAMP(X) (((X) < 255) ? (X) : 255) #else #define DITHER_COMP(X, Y) 0 |