From ba643a2094a1e844b6ce60f468057057557859ce Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 28 Oct 2000 18:34:48 +0000 Subject: Basic work to support deep color channels: Replace GLubyte with GLchan Replace 255 with CHAN_MAX --- src/mesa/main/rastpos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/rastpos.c') diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c index 34359e46e7..a262ed3002 100644 --- a/src/mesa/main/rastpos.c +++ b/src/mesa/main/rastpos.c @@ -1,4 +1,4 @@ -/* $Id: rastpos.c,v 1.8 2000/09/30 18:42:29 brianp Exp $ */ +/* $Id: rastpos.c,v 1.9 2000/10/28 18:34:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -91,8 +91,8 @@ static void raster_pos4f( GLcontext *ctx, else { /* use current color or index */ if (ctx->Visual.RGBAflag) { - UBYTE_RGBA_TO_FLOAT_RGBA(ctx->Current.RasterColor, - ctx->Current.ByteColor); + CHAN_RGBA_TO_FLOAT_RGBA(ctx->Current.RasterColor, + ctx->Current.ByteColor); } else { ctx->Current.RasterIndex = ctx->Current.Index; -- cgit v1.2.3