aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/drawpix.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-10-29 19:02:23 +0000
committerBrian Paul <[email protected]>2000-10-29 19:02:23 +0000
commit193005393d6b1422ad9084f8e71004f4f055b88f (patch)
tree32d7c3ad13c3f17a9956768600dabd7c52308efb /src/mesa/main/drawpix.c
parentebb248aa5c018dc676d389221d76ed329059789e (diff)
renamed Current.ByteColor Current.Color
Diffstat (limited to 'src/mesa/main/drawpix.c')
-rw-r--r--src/mesa/main/drawpix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c
index 4ccb128a485..4b2fbacd6ad 100644
--- a/src/mesa/main/drawpix.c
+++ b/src/mesa/main/drawpix.c
@@ -1,4 +1,4 @@
-/* $Id: drawpix.c,v 1.41 2000/10/29 18:12:15 brianp Exp $ */
+/* $Id: drawpix.c,v 1.42 2000/10/29 19:02:23 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -917,10 +917,10 @@ _mesa_DrawPixels( GLsizei width, GLsizei height,
if (ctx->Current.RasterPosValid) {
GLfloat color[4];
GLfloat texcoord[4], invq;
- color[0] = CHAN_TO_FLOAT(ctx->Current.ByteColor[0]);
- color[1] = CHAN_TO_FLOAT(ctx->Current.ByteColor[1]);
- color[2] = CHAN_TO_FLOAT(ctx->Current.ByteColor[2]);
- color[3] = CHAN_TO_FLOAT(ctx->Current.ByteColor[3]);
+ color[0] = CHAN_TO_FLOAT(ctx->Current.Color[0]);
+ color[1] = CHAN_TO_FLOAT(ctx->Current.Color[1]);
+ color[2] = CHAN_TO_FLOAT(ctx->Current.Color[2]);
+ color[3] = CHAN_TO_FLOAT(ctx->Current.Color[3]);
invq = 1.0F / ctx->Current.Texcoord[0][3];
texcoord[0] = ctx->Current.Texcoord[0][0] * invq;
texcoord[1] = ctx->Current.Texcoord[0][1] * invq;