summaryrefslogtreecommitdiff
path: root/src/mesa/main/rastpos.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-11-25 16:21:51 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-11-25 16:21:51 +0000
commit2c9f50dd4acc65ddfeb8e3fde98137711167e579 (patch)
tree2301c8a7bab79709f98e0507f97eab0f15817440 /src/mesa/main/rastpos.c
parent3bc7f3f864e76e20c644910620f22b23e03547dc (diff)
casts for g++
Diffstat (limited to 'src/mesa/main/rastpos.c')
-rw-r--r--src/mesa/main/rastpos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index dfd404e400..fac7dbd070 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -345,7 +345,7 @@ raster_pos4f(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
ctx->Current.Attrib[VERT_ATTRIB_COLOR1]);
}
else {
- ctx->Current.RasterIndex = ctx->Current.Index;
+ ctx->Current.RasterIndex = (GLuint) ctx->Current.Index;
}
}
@@ -636,7 +636,7 @@ window_pos3f(GLfloat x, GLfloat y, GLfloat z)
= CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][3], 0.0F, 1.0F);
}
else {
- ctx->Current.RasterIndex = ctx->Current.Index;
+ ctx->Current.RasterIndex = (GLuint) ctx->Current.Index;
}
/* raster texcoord = current texcoord */