summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-05-04 15:11:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-05-04 15:11:06 +0000
commitbdd15b5749b45929fa642c3e47997f52eb07fbe5 (patch)
tree103b77f6cd3e845f0816092a7e21a57ec6f98a2c /src/mesa/tnl
parent33ffbd1c58dc8582f67d946f9eb26127e9851a10 (diff)
Fix minor warnings found with g++.
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_context.h2
-rw-r--r--src/mesa/tnl/t_vertex.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index d20f126c5d..b9fc7b8ea0 100644
--- a/src/mesa/tnl/t_context.h
+++ b/src/mesa/tnl/t_context.h
@@ -253,7 +253,7 @@ typedef void (*attrfv_func)( const GLfloat * );
struct _tnl_dynfn {
struct _tnl_dynfn *next, *prev;
- int key;
+ GLuint key;
char *code;
};
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index fc076190e4..dcb6aef16b 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -940,7 +940,7 @@ void _tnl_get_attr( GLcontext *ctx, const void *vin,
GLuint j;
for (j = 0; j < attr_count; j++) {
- if (a[j].attrib == (int)attr) {
+ if (a[j].attrib == attr) {
a[j].extract( &a[j], dest, (GLubyte *)vin + a[j].vertoffset );
return;
}
@@ -963,7 +963,7 @@ void _tnl_set_attr( GLcontext *ctx, void *vout,
GLuint j;
for (j = 0; j < attr_count; j++) {
- if (a[j].attrib == (int)attr) {
+ if (a[j].attrib == attr) {
a[j].insert[4-1]( &a[j], (GLubyte *)vout + a[j].vertoffset, src );
return;
}