diff options
author | Brian Paul <[email protected]> | 2000-10-28 18:34:48 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-10-28 18:34:48 +0000 |
commit | ba643a2094a1e844b6ce60f468057057557859ce (patch) | |
tree | 27309b7362369d7339290f3702f4b7179be4c690 /src/mesa/main/points.c | |
parent | a897b335bec7465ab688ef369c75b468b7251b05 (diff) |
Basic work to support deep color channels:
Replace GLubyte with GLchan
Replace 255 with CHAN_MAX
Diffstat (limited to 'src/mesa/main/points.c')
-rw-r--r-- | src/mesa/main/points.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index 8895e1c8ec4..c23980ff7e4 100644 --- a/src/mesa/main/points.c +++ b/src/mesa/main/points.c @@ -1,4 +1,4 @@ -/* $Id: points.c,v 1.16 2000/10/27 16:44:41 keithw Exp $ */ +/* $Id: points.c,v 1.17 2000/10/28 18:34:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -825,8 +825,7 @@ dist_atten_general_rgba_points( GLcontext *ctx, GLuint first, GLuint last ) GLint y = (GLint) VB->Win.data[i][1]; GLint z = (GLint) (VB->Win.data[i][2] + ctx->PointZoffset); GLfloat dsize=psize*dist[i]; - GLubyte alpha; - + GLchan alpha; GLfixed fog = FloatToFixed( VB->FogCoordPtr->data[i] ); if (dsize >= ctx->Point.Threshold) { |