mesa: silence MSVC signed/unsigned warning in texstorage.c
authorBrian Paul <brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000 (16:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000 (07:42 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/texstorage.c

index 283aefad30882f7744a06da26d1419e653586d12..968f6f904082f16724dd2e632c2e81d9c80c0f66 100644 (file)
@@ -292,7 +292,7 @@ tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target,
 
    /* check levels against width/height/depth */
    maxDim = MAX3(width, height, depth);
-   if (levels > _mesa_logbase2(maxDim) + 1) {
+   if (levels > (GLint) _mesa_logbase2(maxDim) + 1) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
                   "glTexStorage%uD(too many levels for max texture dimension)",
                   dims);