diff options
author | Brian Paul <[email protected]> | 1999-11-05 06:43:10 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-11-05 06:43:10 +0000 |
commit | 5b37c322741f019118a618bc6220f37adba4fbcd (patch) | |
tree | f3279be5226458b598e35fabbe98faf0d4ba8c36 /src/mesa/main/texobj.c | |
parent | 30990a65f8e1fd67d394f0b4a73956975a65a215 (diff) |
clean-up to reduce MSVC warnings
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 60a142ea5bc..2d7db2d5193 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1,4 +1,4 @@ -/* $Id: texobj.c,v 1.6 1999/10/13 18:42:50 brianp Exp $ */ +/* $Id: texobj.c,v 1.7 1999/11/05 06:43:11 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -415,7 +415,7 @@ void gl_BindTexture( GLcontext *ctx, GLenum target, GLuint texName ) struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; struct gl_texture_object *oldTexObj; struct gl_texture_object *newTexObj; - GLint dim; + GLuint dim; if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE)) fprintf(stderr, "glBindTexture %s %d\n", @@ -423,7 +423,7 @@ void gl_BindTexture( GLcontext *ctx, GLenum target, GLuint texName ) ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glBindTexture"); - dim = target - GL_TEXTURE_1D; + dim = (GLuint) (target - GL_TEXTURE_1D); if (dim < 0 || dim > 2) { gl_error( ctx, GL_INVALID_ENUM, "glBindTexture" ); |