mesa: silence MSVC signed/unsigned comparison warning in texstorage.c
authorBrian Paul <brianp@vmware.com>
Sat, 27 Oct 2012 14:58:19 +0000 (08:58 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 29 Oct 2012 23:56:04 +0000 (17:56 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/texstorage.c

index ca02ef3017d7f1ba9215f090161cf07304ec28c7..283aefad30882f7744a06da26d1419e653586d12 100644 (file)
@@ -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;