From: Brian Paul Date: Sat, 27 Oct 2012 14:58:19 +0000 (-0600) Subject: mesa: silence MSVC signed/unsigned comparison warning in texstorage.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db0136ae3e6679c0edfdef00ec55d5ed98346f6c;p=mesa.git mesa: silence MSVC signed/unsigned comparison warning in texstorage.c Reviewed-by: Jose Fonseca --- 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;