From db0136ae3e6679c0edfdef00ec55d5ed98346f6c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 27 Oct 2012 08:58:19 -0600 Subject: mesa: silence MSVC signed/unsigned comparison warning in texstorage.c Reviewed-by: Jose Fonseca --- src/mesa/main/texstorage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/texstorage.c') diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index ca02ef3017d..283aefad308 100644 --- a/src/mesa/main/texstorage.c +++ b/src/mesa/main/texstorage.c @@ -284,7 +284,7 @@ tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target, } /* check levels against maximum (note different error than above) */ - if (levels > _mesa_max_texture_levels(ctx, target)) { + if (levels > (GLint) _mesa_max_texture_levels(ctx, target)) { _mesa_error(ctx, GL_INVALID_OPERATION, "glTexStorage%uD(levels too large)", dims); return GL_TRUE; -- cgit v1.2.3