diff options
author | Brian Paul <[email protected]> | 2004-05-04 15:11:06 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-05-04 15:11:06 +0000 |
commit | bdd15b5749b45929fa642c3e47997f52eb07fbe5 (patch) | |
tree | 103b77f6cd3e845f0816092a7e21a57ec6f98a2c /src/mesa/tnl | |
parent | 33ffbd1c58dc8582f67d946f9eb26127e9851a10 (diff) |
Fix minor warnings found with g++.
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_context.h | 2 | ||||
-rw-r--r-- | src/mesa/tnl/t_vertex.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index d20f126c5d5..b9fc7b8ea0d 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 fc076190e46..dcb6aef16b1 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; } |